Files
zsp-project/backend/internal/model/user.go
2026-06-03 20:59:39 +08:00

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"`
}