draft
This commit is contained in:
16
backend/internal/model/app.go
Normal file
16
backend/internal/model/app.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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" }
|
||||
Reference in New Issue
Block a user