@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 1.1 kB
JavaScript
import e from"./parents/static-repository.mjs";import t from"zod";var n=class extends e{constructor(e,t){super(e,t,`lucid_preview_sessions`)}tableSchema=t.object({id:t.number(),token_hash:t.string(),entry_collection_key:t.string(),entry_document_id:t.number(),entry_version_type:t.string(),mode:t.enum([`perspective`,`scoped`]),entry_version_id:t.number().nullable(),expires_at:t.union([t.string(),t.date()]),created_by:t.number().nullable(),created_at:t.union([t.string(),t.date()])});columnFormats={id:this.dbAdapter.getDataType(`primary`),token_hash:this.dbAdapter.getDataType(`char`,64),entry_collection_key:this.dbAdapter.getDataType(`text`),entry_document_id:this.dbAdapter.getDataType(`integer`),entry_version_type:this.dbAdapter.getDataType(`varchar`,255),mode:this.dbAdapter.getDataType(`varchar`,255),entry_version_id:this.dbAdapter.getDataType(`integer`),expires_at:this.dbAdapter.getDataType(`timestamp`),created_by:this.dbAdapter.getDataType(`integer`),created_at:this.dbAdapter.getDataType(`timestamp`)};queryConfig=void 0};export{n as default};
//# sourceMappingURL=preview-sessions.mjs.map