2023-06-19 01:53:35 +00:00
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fs_quotation_saler 报价单业务员表
|
|
|
|
type FsQuotationSaler struct {
|
2023-06-19 10:27:31 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
|
|
|
Name *string `gorm:"default:'';" json:"name"` // 业务员姓名
|
|
|
|
Phone *string `gorm:"default:'';" json:"phone"` // 联系电话
|
|
|
|
Email *string `gorm:"default:'';" json:"email"` // 联系邮箱
|
|
|
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 1启用0停用
|
|
|
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
type FsQuotationSalerModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
2023-07-20 02:13:18 +00:00
|
|
|
func NewFsQuotationSalerModel(db *gorm.DB) *FsQuotationSalerModel {
|
|
|
|
return &FsQuotationSalerModel{db: db, name: "fs_quotation_saler"}
|
|
|
|
}
|