bindbox-game/internal/repository/mysql/model/mini_program_access_token.gen.go
2025-10-27 11:05:03 +08:00

26 lines
1.1 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 TableNameMiniProgramAccessToken = "mini_program_access_token"
// MiniProgramAccessToken 小程序 access_token 表
type MiniProgramAccessToken struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键" json:"id"` // 主键
AppID string `gorm:"column:app_id;not null;comment:app_id" json:"app_id"` // app_id
AccessToken string `gorm:"column:access_token;not null;comment:access_token" json:"access_token"` // access_token
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间
ExpiredAt time.Time `gorm:"column:expired_at;not null;default:CURRENT_TIMESTAMP;comment:过期时间" json:"expired_at"` // 过期时间
}
// TableName MiniProgramAccessToken's table name
func (*MiniProgramAccessToken) TableName() string {
return TableNameMiniProgramAccessToken
}