27 lines
1.0 KiB
Go
27 lines
1.0 KiB
Go
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||
|
|
||
|
package model
|
||
|
|
||
|
import (
|
||
|
"gorm.io/gorm"
|
||
|
)
|
||
|
|
||
|
const TableNameAppAccount = "app_account"
|
||
|
|
||
|
// AppAccount mapped from table <app_account>
|
||
|
type AppAccount struct {
|
||
|
ID uint32 `gorm:"column:id;type:int unsigned;primaryKey;autoIncrement:true" json:"id"`
|
||
|
Type uint32 `gorm:"column:type;type:tinyint unsigned;not null;comment:类型(0:抖音,1:微信)" json:"type"` // 类型(0:抖音,1:微信)
|
||
|
AppID string `gorm:"column:app_id;type:char(20);not null;index:app_id,priority:1" json:"app_id"`
|
||
|
Secret string `gorm:"column:secret;type:char(40);not null" json:"secret"`
|
||
|
Remark *string `gorm:"column:remark;type:varchar(255);comment:备注" json:"remark"` // 备注
|
||
|
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:time" json:"deleted_at"`
|
||
|
}
|
||
|
|
||
|
// TableName AppAccount's table name
|
||
|
func (*AppAccount) TableName() string {
|
||
|
return TableNameAppAccount
|
||
|
}
|