package model import "time" // App 接入应用 type App struct { ID uint64 `gorm:"column:id;primaryKey;autoIncrement"` AppID string `gorm:"column:app_id;uniqueIndex;size:32;not null"` AppSecret string `gorm:"column:app_secret;size:128;not null"` // AES 加密存储 AppName string `gorm:"column:app_name;size:64;not null"` Status int8 `gorm:"column:status;not null;default:1"` // 1=启用 0=禁用 CreatedAt time.Time `gorm:"column:created_at;autoCreateTime:milli"` UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime:milli"` } func (App) TableName() string { return "app" }