teldrive/pkg/models/user.go
2023-12-03 01:17:23 +05:30

15 lines
364 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"`
UpdatedAt time.Time `gorm:"default:timezone('utc'::text, now())"`
CreatedAt time.Time `gorm:"default:timezone('utc'::text, now())"`
}