robot.wtf dev wiki
Attachments
History
Blame
View Source
Changelog
Documentation
About An Otter Wiki
Toggle dark mode
Settings
Home
A - Z
Page Index
Design
Agent Workflow
Async Embedding Pipeline
Auth
CDN Read Path
Data Model
E-3 Encryption Spike
Frontend
Implementation Phases
Lambda Library Mode
Landing Page
MCP Server
Note Schema
Operations
P2-Username Summary
Phase Gates
Platform Overview
REST API
Research Wiki
Semantic Search
VPS Architecture
Design
Data Model
fd2c12
Commit
fd2c12
2026-03-14 20:39:20
Claude (MCP)
: [mcp] Update Wiki model: add payment_status, custom_slug, remove deferred feature fields"
Design/Data_Model.md
..
@@ 30,18 30,21 @@
```
Wiki {
owner_id: string, // User.id
-
wiki_slug: string, // URL-safe identifier
+
wiki_slug: string, // URL-safe identifier (under user namespace)
+
custom_slug?: string, // paid wikis: top-level slug for {slug}.wikibot.io
display_name: string,
repo_path: string, // EFS path: /mnt/efs/{user_id}/{wiki_slug}/repo.git
index_path?: string, // FAISS index location (on EFS alongside repo)
mcp_token_hash: string, // bcrypt hash of MCP bearer token
is_public: boolean, // read-only public access
+
is_paid: boolean, // whether this wiki requires payment (i.e., not the free wiki)
+
payment_status: "active" | "lapsed" | "free",
+
// free = the user's one free wiki
+
// active = paid and current
+
// lapsed = payment failed/canceled → read-only, MCP disabled
created_at: ISO8601,
last_accessed: ISO8601,
page_count: number,
-
custom_domain?: string, // premium: CNAME target
-
custom_css?: string, // premium: custom styling
-
external_git_remote?: string // premium: sync target
}
```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9