mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 17:17:13 +08:00
13 lines
511 B
Go
13 lines
511 B
Go
package models
|
|
|
|
import "github.com/goravel/framework/support/carbon"
|
|
|
|
type User struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
Username string `gorm:"unique;not null" json:"username"`
|
|
Password string `gorm:"not null" json:"password"`
|
|
Email string `gorm:"default:''" json:"email"`
|
|
CreatedAt carbon.DateTime `gorm:"autoCreateTime;column:created_at" json:"created_at"`
|
|
UpdatedAt carbon.DateTime `gorm:"autoUpdateTime;column:updated_at" json:"updated_at"`
|
|
}
|