teldrive/models/user.model.go
2023-08-16 22:40:41 +05:30

15 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())"`
}