package models import model2 "Medical_ERP/common/model" type MedicineInfo struct { model2.Model ProductID int `json:"productId" gorm:"size:4;"` // 药品名称id EnterpriseID int `json:"enterpriseId" gorm:"size:4;"` // 生产企业id SpecID int `json:"specId" gorm:"size:4;"` // 规格id UnitID int `json:"unitId" gorm:"size:4;"` // 单位id 非必填 DosageFormID int `json:"dosageFormId" gorm:"size:4;"` // 剂型id 非必填 ApprovalNumber string `json:"approvalNumber" gorm:"size:128;"` // 批准文号 QualificationNumber string `json:"qualificationNumber" gorm:"size:128;"` // 批签发合格编号 ProductionDate string `json:"productionDate" gorm:"size:128;"` // 生产日期 ExpiryDate string `json:"expiryDate" gorm:"size:128;"` // 失效日期 BatchNumber string `json:"batchNumber" gorm:"size:128;"` // 批号 Qrcode string `json:"qrcode" gorm:"size:256;"` // 追溯码 Product Product `json:"product" gorm:"->;foreignkey:ProductID;references:Id"` Enterprise Enterprise `json:"enterprise" gorm:"->;foreignkey:EnterpriseID;references:Id"` Spec Spec `json:"spec" gorm:"->;foreignkey:SpecID;references:Id"` Unit Unit `json:"unit" gorm:"->;foreignkey:UnitID;references:Id"` DosageForm DosageForm `json:"dosageForm" gorm:"->;foreignkey:DosageFormID;references:Id"` }