UNPKG

@lucidcms/core

Version:

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

2 lines 1.48 kB
import e from"./parents/static-repository.mjs";import t from"zod";var n=class extends e{constructor(e,t){super(e,t,`lucid_media_upload_sessions`)}tableSchema=t.object({session_id:t.string(),key:t.string(),adapter_key:t.string(),adapter_upload_id:t.string().nullable(),mode:t.enum([`single`,`resumable`]),status:t.enum([`active`,`completed`,`aborted`]),file_name:t.string(),mime_type:t.string(),file_extension:t.string().nullable(),file_size:t.number(),part_size:t.number().nullable(),created_by:t.number().nullable(),created_at:t.union([t.string(),t.date()]),updated_at:t.union([t.string(),t.date()]).nullable(),expires_at:t.union([t.string(),t.date()]).nullable()});columnFormats={session_id:this.dbAdapter.getDataType(`text`),key:this.dbAdapter.getDataType(`text`),adapter_key:this.dbAdapter.getDataType(`text`),adapter_upload_id:this.dbAdapter.getDataType(`text`),mode:this.dbAdapter.getDataType(`text`),status:this.dbAdapter.getDataType(`text`),file_name:this.dbAdapter.getDataType(`text`),mime_type:this.dbAdapter.getDataType(`text`),file_extension:this.dbAdapter.getDataType(`text`),file_size:this.dbAdapter.getDataType(`integer`),part_size:this.dbAdapter.getDataType(`integer`),created_by:this.dbAdapter.getDataType(`integer`),created_at:this.dbAdapter.getDataType(`timestamp`),updated_at:this.dbAdapter.getDataType(`timestamp`),expires_at:this.dbAdapter.getDataType(`timestamp`)};queryConfig=void 0};export{n as default}; //# sourceMappingURL=media-upload-sessions.mjs.map