package entities import ( "time" ) type ProductionStandard struct { Id uint `gorm:"primaryKey;autoIncrement"` Name string `gorm:"type:varchar(100);uniqueIndex;not null"` ProjectCategory string `gorm:"type:varchar(20);not null"` CreatedAt time.Time `gorm:"type:timestamptz;not null"` UpdatedAt time.Time `gorm:"type:timestamptz;not null"` DeletedAt *time.Time `gorm:"type:timestamptz"` CreatedBy uint `gorm:"not null"` CreatedUser User `gorm:"foreignKey:CreatedBy;references:Id"` ProductionStandardDetails []ProductionStandardDetail `gorm:"foreignKey:ProductionStandardId;references:Id"` StandardGrowthDetails []StandardGrowthDetail `gorm:"foreignKey:ProductionStandardId;references:Id"` }