teldrive/models/user.model.go

16 lines
404 B
Go
Raw Normal View History

2023-08-14 04:58:06 +08:00
package models
import (
"time"
)
type User struct {
2023-08-18 07:25:27 +08:00
UserId int `gorm:"type:bigint;primaryKey"`
2023-08-14 04:58:06 +08:00
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())"`
}