UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 877 B
import e from"./parents/static-repository.mjs";import t from"zod";var n=class extends e{constructor(e,t){super(e,t,`lucid_collections`)}tableSchema=t.object({key:t.string(),is_deleted:t.union([t.literal(this.dbAdapter.config.defaults.boolean.true),t.literal(this.dbAdapter.config.defaults.boolean.false)]),is_deleted_at:t.union([t.string(),t.date()]).nullable(),created_at:t.union([t.string(),t.date()]).nullable()});columnFormats={key:this.dbAdapter.getDataType(`text`),is_deleted:this.dbAdapter.getDataType(`boolean`),is_deleted_at:this.dbAdapter.getDataType(`timestamp`),created_at:this.dbAdapter.getDataType(`timestamp`)};queryConfig={tableKeys:{filters:{isDeleted:`is_deleted`,key:`key`},sorts:{key:`key`,isDeleted:`is_deleted`,isDeletedAt:`is_deleted_at`,createdAt:`created_at`}},operators:{key:`contains`}}};export{n as default}; //# sourceMappingURL=collections.mjs.map