@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
1 lines • 1.69 kB
Source Map (JSON)
{"version":3,"file":"document-publish-operation-assignees.mjs","names":[],"sources":["../../../src/libs/repositories/document-publish-operation-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 DocumentPublishOperationAssigneesRepository extends StaticRepository<\"lucid_document_publish_operation_assignees\"> {\n\tconstructor(db: KyselyDB, dbAdapter: DatabaseAdapter) {\n\t\tsuper(db, dbAdapter, \"lucid_document_publish_operation_assignees\");\n\t}\n\ttableSchema = z.object({\n\t\tid: z.number(),\n\t\toperation_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\toperation_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,cAAyE,CAA+D,CACvI,YAAY,EAAc,EAA4B,CACrD,MAAM,EAAI,EAAW,4CAA4C,CAClE,CACA,YAAc,EAAE,OAAO,CACtB,GAAI,EAAE,OAAO,EACb,aAAc,EAAE,OAAO,EACvB,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,aAAc,KAAK,UAAU,YAAY,SAAS,EAClD,QAAS,KAAK,UAAU,YAAY,SAAS,EAC7C,YAAa,KAAK,UAAU,YAAY,SAAS,EACjD,YAAa,KAAK,UAAU,YAAY,WAAW,CACpD,EACA,YAAc,IAAA,EACf"}