subaccount.go 867 B

1234567891011121314151617
  1. package gorm_model
  2. type YounggeeSubAccount struct {
  3. SubAccountId int `gorm:"column:sub_account_id"` //子账号ID
  4. PhoneNumber string `gorm:"column:phone_number"` //电话号
  5. SubAccountName string `gorm:"column:sub_account_name"` //子账号名称
  6. JobId int `gorm:"column:job_id"` //岗位ID
  7. EnterpriseId string `gorm:"column:enterprise_id"` //企业ID
  8. AccountStatus int `gorm:"column:account_status"` //帐号状态1为正常,2为已停用
  9. SubAccountType int `gorm:"column:sub_account_type"` //子账号类型,1为商家端子账号,2为管理后台子账号
  10. SuperAdminId int64 `gorm:"column:super_admin_id"` //管理后台子账号创建者ID
  11. UserId int64 `gorm:"column:user_id"` //用户ID
  12. }
  13. func (m *YounggeeSubAccount) TableName() string {
  14. return "younggee_sub_account"
  15. }