mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
18 lines
317 B
Go
18 lines
317 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type User struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
IdUser int64 `gorm:"uniqueIndex"`
|
|
Email string `gorm:"uniqueIndex"`
|
|
Name string `gorm:"not null"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
|
|
}
|