...
This commit is contained in:
29
specs/models_threefold_old/main/user.v
Normal file
29
specs/models_threefold_old/main/user.v
Normal file
@@ -0,0 +1,29 @@
|
||||
module circle
|
||||
|
||||
import freeflowuniverse.herolib.hero.models.core
|
||||
|
||||
//is a user in the system, most of info is in models_heroledger
|
||||
|
||||
|
||||
pub struct User {
|
||||
core.Base
|
||||
pub mut:
|
||||
username string // Unique username for the user @[index]
|
||||
pubkey string // Public key for cryptographic operations @[index]
|
||||
status UserStatus // Current user status
|
||||
kyc KYCStatus // Know Your Customer status
|
||||
}
|
||||
|
||||
|
||||
pub enum UserStatus {
|
||||
active
|
||||
inactive
|
||||
suspended
|
||||
archived
|
||||
}
|
||||
|
||||
pub enum KYCStatus {
|
||||
pending
|
||||
approved
|
||||
rejected
|
||||
}
|
Reference in New Issue
Block a user