Update git remote URL from git.threefold.info to git.ourworld.tf

This commit is contained in:
2025-08-04 10:44:17 +02:00
parent 0cf66642a2
commit aa7e79d26c
85 changed files with 1865 additions and 392 deletions

12
specs/models/core/base.v Normal file
View File

@@ -0,0 +1,12 @@
module core
// BaseData provides common fields for all models
pub struct Base {
pub mut:
id u32
created u64 // Unix timestamp of creation
updated u64 // Unix timestamp of last update
deleted bool
version u32
comments []Comment
}

View File

@@ -0,0 +1,20 @@
module core
// Comment represents a generic comment that can be associated with any model
// It supports threaded conversations with parent/child relationships
pub struct Comment {
pub mut:
// Unique identifier for the comment
id u32 // Unique identifier for the comment @[index]
// Timestamp when the comment was created
created_at u64 // Timestamp when the comment was created
// Timestamp when the comment was last updated
updated_at u64 // Timestamp when the comment was last updated
// ID of the user who posted this comment
user_id u32 // ID of the user who posted this comment @[index]
// The actual text content of the comment
content string
// Optional ID of the parent comment for threaded conversations
// None indicates this is a top-level comment
parent_comment_id u32
}