Files
johndoe6345789 149d6cf297 fix(dbal): add missing codeforge entity schemas (Settings, Theme, Lambda, ComponentNode)
The DBAL sync client referenced these 4 entities but no JSON schema files
existed, causing 422 Unprocessable Entity on CodeForge page load.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 08:43:52 +00:00

53 lines
1.2 KiB
JSON

{
"entity": "Theme",
"version": "1.0",
"description": "Custom UI theme definition for CodeForge",
"tenantId": true,
"fields": {
"id": {
"type": "uuid",
"primary": true,
"generated": true,
"description": "Unique theme identifier"
},
"name": {
"type": "string",
"required": true,
"max_length": 100,
"description": "Theme display name"
},
"colors": {
"type": "json",
"required": true,
"description": "Color tokens (primary, secondary, accent, background, foreground, muted, destructive, border)"
},
"typography": {
"type": "json",
"description": "Typography tokens (fontFamily, headingFamily, fontSize, fontWeight)"
},
"spacing": {
"type": "json",
"description": "Spacing tokens (unit, scale)"
},
"updatedAt": {
"type": "bigint",
"generated": true
}
},
"indexes": [
{
"fields": ["tenantId"]
},
{
"fields": ["name", "tenantId"],
"unique": true
}
],
"acl": {
"create": { "user": true },
"read": { "self": true, "admin": true },
"update": { "self": true },
"delete": { "self": true }
}
}