teldrive/models/user.model.go

16 lines
401 B
Go
Raw Normal View History

2023-08-14 04:58:06 +08:00
package models
import (
"time"
)
type User struct {
UserId int `gorm:"type:int;primaryKey"`
Name string `gorm:"type:text"`
UserName string `gorm:"type:text"`
IsPremium bool `gorm:"type:bool"`
TgSession string `gorm:"type:text"`
UpdatedAt time.Time `gorm:"default:timezone('utc'::text, now())"`
CreatedAt time.Time `gorm:"default:timezone('utc'::text, now())"`
}