geoGo/internal/data/model/token.gen.go

28 lines
865 B
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 TableNameToken = "token"
// Token mapped from table <token>
type Token struct {
ID int32 `gorm:"column:id;primaryKey" json:"id"`
Name string `gorm:"column:name" json:"name"`
Secret string `gorm:"column:secret;not null" json:"secret"`
AccessToken string `gorm:"column:access_token;not null" json:"access_token"`
UserLimit int32 `gorm:"column:user_limit;primaryKey" json:"user_limit"`
ExpireTime time.Time `gorm:"column:expire_time;not null" json:"expire_time"`
Status int32 `gorm:"column:status;not null;default:1" json:"status"`
}
// TableName Token's table name
func (*Token) TableName() string {
return TableNameToken
}