UNPKG

@lucidcms/core

Version:

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

2 lines 924 B
import e from"./parents/static-repository.mjs";import t from"zod";var n=class extends e{constructor(e,t){super(e,t,`lucid_alerts`)}tableSchema=t.object({id:t.number(),type:t.enum([`storage`,`publish-request`]),level:t.enum([`info`,`warning`,`error`,`critical`]),dedupe_key:t.string(),title:t.string(),message:t.string(),metadata:t.record(t.string(),t.unknown()),email_id:t.number().nullable(),created_at:t.union([t.string(),t.date()])});columnFormats={id:this.dbAdapter.getDataType(`primary`),type:this.dbAdapter.getDataType(`text`),level:this.dbAdapter.getDataType(`text`),dedupe_key:this.dbAdapter.getDataType(`text`),title:this.dbAdapter.getDataType(`text`),message:this.dbAdapter.getDataType(`text`),metadata:this.dbAdapter.getDataType(`json`),email_id:this.dbAdapter.getDataType(`integer`),created_at:this.dbAdapter.getDataType(`timestamp`)};queryConfig=void 0};export{n as default}; //# sourceMappingURL=alerts.mjs.map