...
This commit is contained in:
22
specs/models_threefold_old/main/user_kvs.v
Normal file
22
specs/models_threefold_old/main/user_kvs.v
Normal file
@@ -0,0 +1,22 @@
|
||||
module circle
|
||||
|
||||
import freeflowuniverse.herolib.hero.models.core
|
||||
|
||||
//a per user db
|
||||
pub struct UserKVS {
|
||||
core.Base
|
||||
pub mut:
|
||||
userid u32 // Reference to the user entity @[index]
|
||||
name string // Name of the key-value store
|
||||
}
|
||||
|
||||
pub struct UserKVSItem {
|
||||
core.Base
|
||||
pub mut:
|
||||
userkvs_id u32 // Reference to the user entity @[index]
|
||||
key string
|
||||
value string // Value associated with the key
|
||||
secretbox []SecretBox // Optional secret boxes for sensitive data
|
||||
timestamp u64 // Timestamp when the item was created or last updated
|
||||
}
|
||||
|
Reference in New Issue
Block a user