...
This commit is contained in:
20
specs/models_older/user.v
Normal file
20
specs/models_older/user.v
Normal file
@@ -0,0 +1,20 @@
|
||||
module user
|
||||
|
||||
import base
|
||||
import freeflowuniverse.herolib.data.ourtime
|
||||
|
||||
// UserRole represents the possible roles a user can have
|
||||
pub enum UserRole {
|
||||
user
|
||||
admin
|
||||
}
|
||||
|
||||
// User represents a user in the system
|
||||
pub struct User {
|
||||
base.Base // Base struct for common fields (id u32, creation_time, mod_time, comments []u32)
|
||||
pub mut:
|
||||
name string
|
||||
email string
|
||||
password_hash string // Hashed password
|
||||
role UserRole
|
||||
}
|
Reference in New Issue
Block a user