mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-01-14 10:25:49 +01:00
19 lines
512 B
Go
19 lines
512 B
Go
package models
|
|
|
|
import (
|
|
"database/sql"
|
|
"time"
|
|
)
|
|
|
|
// User : User Model
|
|
type User struct {
|
|
ID uint `gorm:"primary_key"`
|
|
Email sql.NullString `gorm:"uniqueIndex"`
|
|
Login string `gorm:"uniqueIndex;not null"`
|
|
Password string `gorm:"index;not null"`
|
|
RefreshToken sql.NullString `gorm:"uniqueIndex"`
|
|
AccessToken sql.NullString `gorm:"uniqueIndex"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
}
|