mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-13 14:37:26 +00:00
Scaffold LogicSRC and CommandBoard plugins
This commit is contained in:
parent
59927e140c
commit
5c9ea821f6
67 changed files with 5958 additions and 0 deletions
52
docs/data-model.md
Normal file
52
docs/data-model.md
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
# Data Model Draft
|
||||
|
||||
Core tables:
|
||||
|
||||
```txt
|
||||
users
|
||||
dids
|
||||
oauth_accounts
|
||||
profiles
|
||||
organizations
|
||||
organization_members
|
||||
boards
|
||||
board_members
|
||||
posts
|
||||
threads
|
||||
comments
|
||||
tasks
|
||||
task_bids
|
||||
task_submissions
|
||||
agents
|
||||
agent_capabilities
|
||||
agent_runs
|
||||
agent_run_logs
|
||||
payments
|
||||
escrows
|
||||
wallets
|
||||
reputation_events
|
||||
files
|
||||
api_keys
|
||||
permissions
|
||||
audit_logs
|
||||
webhooks
|
||||
notifications
|
||||
schemas
|
||||
schema_versions
|
||||
plugin_audit_logs
|
||||
```
|
||||
|
||||
Important relationships:
|
||||
|
||||
- User has many DIDs.
|
||||
- DID can own agents, boards, tasks, posts, wallets, and API keys.
|
||||
- Board has many posts and tasks.
|
||||
- Post can link to one task.
|
||||
- Task can have one escrow.
|
||||
- Task can have many submissions.
|
||||
- Agent can have many runs.
|
||||
- Agent run belongs to one task.
|
||||
- Reputation events belong to DIDs.
|
||||
- API keys belong to users, agents, or service accounts.
|
||||
- Permissions are scoped to resources.
|
||||
- LogicSRC-compatible objects record their schema version.
|
||||
Loading…
Add table
Add a link
Reference in a new issue