package model

import model2 "cold-delivery/common/model"

type Drug struct {
	model2.Model
	model2.ControlBy
	model2.ModelTime
	model2.DeptBy
	WaybillNo             string `json:"waybillId" gorm:"size:128;comment:运单id"`
	Physic_name           string `json:"physic_name" gorm:"size:128;comment:药品名称"`
	Physic_type_desc      string `json:"physic_type_desc" gorm:"size:128;comment:药品类型"`
	Pkg_spec_crit         string `json:"pkg_spec_crit" gorm:"size:128;comment:包装规格"`
	Prepn_spec            string `json:"prepn_spec" gorm:"size:128;comment:制剂规格"`
	Prepn_type_desc       string `json:"prepn_type_desc" gorm:"size:128;comment:制剂类型"`
	Approval_licence_no   string `json:"approval_licence_no" gorm:"size:128;comment:批准文号"`
	Drug_ent_base_info_id string `json:"drug_ent_base_info_id" gorm:"size:128;comment:药品id"`
	Ent_name              string `json:"ent_name" gorm:"size:128;comment:企业名称"`
	Code                  string `json:"code" gorm:"size:128;comment:药品编码"`
	Count                 int    `json:"count" gorm:"size:128;comment:数量"`
	IsAssignment          bool   `json:"isAssignment" gorm:"default:false;comment:是否分配"`
}

func (Drug) TableName() string {
	return "drug"
}
