whatsapp_channel.gen.go 2.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. "gorm.io/gorm"
  8. )
  9. const TableNameWhatsappChannel = "whatsapp_channel"
  10. // WhatsappChannel Whatsapp通道表
  11. type WhatsappChannel struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  13. CreatedAt time.Time `gorm:"column:created_at;not null;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  14. UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  15. Status int64 `gorm:"column:status;default:1;comment:Status 1: normal 2: ban | 状态 1 正常 2 禁用" json:"status"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  16. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  17. Ak string `gorm:"column:ak" json:"ak"`
  18. Sk string `gorm:"column:sk" json:"sk"`
  19. WaID string `gorm:"column:wa_id;not null;comment:通道ID" json:"wa_id"` // 通道ID
  20. WaName string `gorm:"column:wa_name;not null;comment:通道名" json:"wa_name"` // 通道名
  21. OrganizationID int64 `gorm:"column:organization_id;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID
  22. WabaID int64 `gorm:"column:waba_id;not null;comment:WABA ID" json:"waba_id"` // WABA ID
  23. BusinessID int64 `gorm:"column:business_id;not null;comment:商品平台ID" json:"business_id"` // 商品平台ID
  24. VerifyAccount string `gorm:"column:verify_account;not null;comment:认证主体" json:"verify_account"` // 认证主体
  25. }
  26. // TableName WhatsappChannel's table name
  27. func (*WhatsappChannel) TableName() string {
  28. return TableNameWhatsappChannel
  29. }