teldrive/models/user.model.go
2023-08-22 20:30:14 +05:30

15 lines
404 B
Go

package models
import (
"time"
)
type User struct {
UserId int64 `gorm:"type:bigint;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())"`
}