teldrive/models/user.model.go
2023-08-18 04:55:27 +05:30

15 lines
404 B
Go

package models
import (
"time"
)
type User struct {
UserId int `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())"`
}