13 lines
229 B
Go
13 lines
229 B
Go
package model
|
|
|
|
import (
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// User represents a registered user in the system.
|
|
type User struct {
|
|
gorm.Model
|
|
Username string `gorm:"uniqueIndex;not null"`
|
|
Password string `gorm:"not null"` // Hashed password
|
|
}
|