UNPKG

@lucidcms/core

Version:

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

1 lines 1.65 kB
{"version":3,"file":"document-workflow-assignees.mjs","names":[],"sources":["../../../src/libs/repositories/document-workflow-assignees.ts"],"sourcesContent":["import z from \"zod\";\nimport type DatabaseAdapter from \"../db/adapter-base.js\";\nimport type { KyselyDB } from \"../db/types.js\";\nimport StaticRepository from \"./parents/static-repository.js\";\n\nexport default class DocumentWorkflowAssigneesRepository extends StaticRepository<\"lucid_document_workflow_assignees\"> {\n\tconstructor(db: KyselyDB, dbAdapter: DatabaseAdapter) {\n\t\tsuper(db, dbAdapter, \"lucid_document_workflow_assignees\");\n\t}\n\ttableSchema = z.object({\n\t\tid: z.number(),\n\t\tworkflow_id: z.number(),\n\t\tuser_id: z.number(),\n\t\tassigned_by: z.number().nullable(),\n\t\tassigned_at: z.union([z.string(), z.date()]),\n\t});\n\tcolumnFormats = {\n\t\tid: this.dbAdapter.getDataType(\"primary\"),\n\t\tworkflow_id: this.dbAdapter.getDataType(\"integer\"),\n\t\tuser_id: this.dbAdapter.getDataType(\"integer\"),\n\t\tassigned_by: this.dbAdapter.getDataType(\"integer\"),\n\t\tassigned_at: this.dbAdapter.getDataType(\"timestamp\"),\n\t};\n\tqueryConfig = undefined;\n}\n"],"mappings":"kEAKA,IAAqB,EAArB,cAAiE,CAAsD,CACtH,YAAY,EAAc,EAA4B,CACrD,MAAM,EAAI,EAAW,mCAAmC,CACzD,CACA,YAAc,EAAE,OAAO,CACtB,GAAI,EAAE,OAAO,EACb,YAAa,EAAE,OAAO,EACtB,QAAS,EAAE,OAAO,EAClB,YAAa,EAAE,OAAO,CAAC,CAAC,SAAS,EACjC,YAAa,EAAE,MAAM,CAAC,EAAE,OAAO,EAAG,EAAE,KAAK,CAAC,CAAC,CAC5C,CAAC,EACD,cAAgB,CACf,GAAI,KAAK,UAAU,YAAY,SAAS,EACxC,YAAa,KAAK,UAAU,YAAY,SAAS,EACjD,QAAS,KAAK,UAAU,YAAY,SAAS,EAC7C,YAAa,KAAK,UAAU,YAAY,SAAS,EACjD,YAAa,KAAK,UAAU,YAAY,WAAW,CACpD,EACA,YAAc,IAAA,EACf"}