wms-be/database/entities/m_maintenance_schdule_line_...

24 lines
1.1 KiB
Go

package entities
import (
"time"
"github.com/google/uuid"
)
type M_MaintenanceScheduleLine struct {
ID uuid.UUID `gorm:"type:uuid;primary_key;default:uuid_generate_v4()" json:"id"`
MaintenanceScheduleHeaderID uuid.UUID `gorm:"type:uuid;not null;index" json:"maintenance_schedule_header_id"`
StaffID uuid.UUID `gorm:"type:uuid;not null;index" json:"staff_id"`
Notes string `gorm:"type:text" json:"notes"`
PlannedDate time.Time `gorm:"type:timestamp;not null" json:"planned_date"`
DueDate time.Time `gorm:"type:timestamp;not null" json:"due_date"`
AssetID uuid.UUID `gorm:"type:uuid;not null;index" json:"asset_id"`
TaskDescription string `gorm:"type:text" json:"task_description"`
CategoryID uuid.UUID `gorm:"type:uuid;not null;index" json:"category_id"`
LocationID uuid.UUID `gorm:"type:uuid;not null;index" json:"location_id"`
ClientID uuid.UUID `gorm:"type:uuid;not null;index" json:"client_id"`
FullAuditTrail
}