package entities import ( "time" "github.com/google/uuid" ) type M_MaintenanceScheduleHeader struct { ID uuid.UUID `gorm:"type:uuid;primary_key;default:uuid_generate_v4()" json:"id"` MaintenanceGroupID uuid.UUID `gorm:"type:uuid;not null;index" json:"maintenance_group_id"` CategoryID uuid.UUID `gorm:"type:uuid;not null;index" json:"category_id"` LocationID uuid.UUID `gorm:"type:uuid;not null;index" json:"location_id"` SpvCreatedId uuid.UUID `gorm:"type:uuid;not null;index" json:"spv_created_id"` SpvAssignId uuid.UUID `gorm:"type:uuid;not null;index" json:"spv_assign_id"` Name string `gorm:"type:varchar(100);not null" json:"name"` Notes string `gorm:"type:text" json:"notes"` AttachmentUrl string `gorm:"type:varchar(255)" json:"attachment_url"` IntervalNumber int `gorm:"not null" json:"interval_number"` IntervalUom uuid.UUID `gorm:"type:uuid;not null;index" json:"interval_uom"` ApprovalStatus string `gorm:"type:varchar(50);not null" json:"approval_status"` EndDate time.Time `json:"end_date"` StartDate time.Time `json:"start_date"` DocumentNo string `gorm:"type:varchar(50);uniqueIndex;not null" json:"document_no"` OnDay int `json:"on_day"` OnMonth int `json:"on_month"` Repeat string `gorm:"type:varchar(50);not null" json:"repeat"` RepeatEvery int `json:"repeat_every"` Weeks string `gorm:"type:varchar(100)" json:"weeks"` AssetID uuid.UUID `gorm:"type:uuid;index" json:"asset_id"` StandardMaintenanceID uuid.UUID `gorm:"type:uuid;index" json:"standard_maintenance_id"` ClientID uuid.UUID `gorm:"type:uuid;not null;index" json:"client_id"` FullAuditTrail }