15 lines
381 B
Go
Executable File
15 lines
381 B
Go
Executable File
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type User struct {
|
|
ID uint `gorm:"primarykey" json:"id"`
|
|
Username string `gorm:"uniqueIndex;size:50" json:"username"`
|
|
Email string `gorm:"uniqueIndex;size:100" json:"email"`
|
|
Password string `gorm:"size:255" json:"-"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|