mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 06:44:58 +00:00
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>
53 lines
1.2 KiB
JSON
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 }
|
|
}
|
|
}
|