UNPKG

@lucidcms/core

Version:

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

2 lines 996 B
import e from"./parents/static-repository.mjs";import t from"zod";var n=class extends e{constructor(e,t){super(e,t,`lucid_tenants`)}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(),updated_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`),updated_at:this.dbAdapter.getDataType(`timestamp`)};queryConfig={tableKeys:{filters:{key:`key`,isDeleted:`is_deleted`},sorts:{key:`key`,isDeleted:`is_deleted`,isDeletedAt:`is_deleted_at`,createdAt:`created_at`,updatedAt:`updated_at`}},operators:{key:`contains`}}};export{n as default}; //# sourceMappingURL=tenants.mjs.map