@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 573 B
JavaScript
const e={parentId:`parent_id`},t={mode:`relation-table`,baseTablePriority:300,getSchemaDefinition:t=>({columns:[{name:e.parentId,type:t.db.getDataType(`integer`),nullable:!1,foreignKey:{table:t.table.parent,column:`id`,onDelete:`cascade`}}]}),getTableFieldPath:e=>[e.fieldKey],clientTypeGen:e=>({fieldType:e.fieldType??e.helpers.renderBaseFieldType({field:e.field,mode:e.fieldMode,valueType:e.valueType,hasGroupRef:e.hasGroupRef}),declarations:e.declarations??[]})};export{t as relationTableMode,e as relationTableSchemaColumns};
//# sourceMappingURL=relation-table.mjs.map