teldrive/pkg/models/user.go

15 lines
364 B
Go
Raw Normal View History

2023-08-14 04:58:06 +08:00
package models
import (
"time"
)
type User struct {
2023-08-22 23:00:14 +08:00
UserId int64 `gorm:"type:bigint;primaryKey"`
2023-08-14 04:58:06 +08:00
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())"`
}