package models // EmployeeLevel 员工等级 type EmployeeLevel struct { ID int64 `json:"id" gorm:"primarykey;comment:自增ID"` EmpId int64 `json:"emp_id" gorm:"not null;default:0;comment:员工id"` MaxNum int64 `json:"max_num" gorm:"not null;default:0;comment:最大数量"` Level int8 `json:"level" gorm:"not null;default:0;comment:等级"` PayTime int64 `json:"pay_time" gorm:"not null;default:0;comment:最新支付时间"` ExpireTime int64 `json:"expire_time" gorm:"not null;default:0;comment:到期时间"` CreatedAt int64 `json:"created_at" gorm:"not null;default:0;comment:创建时间"` UpdatedAt int64 `json:"updated_at" gorm:"not null;default:0;comment:更新时间"` IsDel int8 `json:"is_del" gorm:"type:tinyint(1);not null;default:0;comment:逻辑删除标记(0:未删除,1:已删除)"` } func (EmployeeLevel) TableName() string { return "employees_level" } func (EmployeeLevel) TableOptions() string { return "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='员工等级表'" }