mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-09 00:29:57 +08:00
16 lines
401 B
Go
16 lines
401 B
Go
|
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())"`
|
||
|
}
|