UNPKG

@lucidcms/core

Version:

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

2 lines 937 B
import e from"./parents/static-repository.mjs";import t from"zod";var n=class extends e{constructor(e,t){super(e,t,`lucid_user_logins`)}tableSchema=t.object({id:t.number(),user_id:t.number(),token_id:t.number().nullable(),auth_method:t.string(),ip_address:t.string().nullable(),user_agent:t.string().nullable(),created_at:t.union([t.string(),t.date()]).nullable()});columnFormats={id:this.dbAdapter.getDataType(`primary`),user_id:this.dbAdapter.getDataType(`integer`),token_id:this.dbAdapter.getDataType(`integer`),auth_method:this.dbAdapter.getDataType(`text`),ip_address:this.dbAdapter.getDataType(`varchar`,255),user_agent:this.dbAdapter.getDataType(`text`),created_at:this.dbAdapter.getDataType(`timestamp`)};queryConfig={tableKeys:{filters:{authMethod:`auth_method`,ipAddress:`ip_address`,userAgent:`user_agent`,createdAt:`created_at`},sorts:{createdAt:`created_at`}}}};export{n as default}; //# sourceMappingURL=user-logins.mjs.map