mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
18 lines
444 B
Go
18 lines
444 B
Go
package entities
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type User struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
IdUser int64 `gorm:"uniqueIndex"`
|
|
Email string `gorm:"type:varchar(50);uniqueIndex"`
|
|
Name string `gorm:"type:varchar(50);not null"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
|
|
}
|