2023-04-29 17:38:21 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Account struct {
|
|
|
|
gorm.Model
|
2023-06-29 10:19:50 +00:00
|
|
|
ID uint `gorm:"primaryKey" gorm:"AUTO_INCREMENT"`
|
2023-04-29 17:38:21 +00:00
|
|
|
Email string `gorm:"uniqueIndex"`
|
|
|
|
Password *string
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
2023-04-30 06:16:32 +00:00
|
|
|
LoginTokens []LoginSession
|
|
|
|
Keys []Key
|
2023-04-29 17:38:21 +00:00
|
|
|
}
|