30 lines
1.6 KiB
Go
30 lines
1.6 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 (
|
|
"time"
|
|
)
|
|
|
|
const TableNameMiniProgram = "mini_program"
|
|
|
|
// MiniProgram 小程序表
|
|
type MiniProgram struct {
|
|
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID
|
|
AppID string `gorm:"column:app_id;not null;comment:小程序ID" json:"app_id"` // 小程序ID
|
|
Name string `gorm:"column:name;not null;comment:名称" json:"name"` // 名称
|
|
Description string `gorm:"column:description;not null;comment:描述" json:"description"` // 描述
|
|
Avatar string `gorm:"column:avatar;not null;comment:头像" json:"avatar"` // 头像
|
|
CreatedUser string `gorm:"column:created_user;not null;comment:创建人" json:"created_user"` // 创建人
|
|
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间
|
|
UpdatedUser string `gorm:"column:updated_user;not null;comment:更新人" json:"updated_user"` // 更新人
|
|
UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"updated_at"` // 更新时间
|
|
}
|
|
|
|
// TableName MiniProgram's table name
|
|
func (*MiniProgram) TableName() string {
|
|
return TableNameMiniProgram
|
|
}
|