Initial commit - Event Planner application

This commit is contained in:
mberlin
2026-03-18 14:55:56 -03:00
commit 86d779eb4d
7548 changed files with 1006324 additions and 0 deletions

10
dist/todo/entities/todo.entity.d.ts vendored Normal file
View File

@@ -0,0 +1,10 @@
import { EntitySchema } from '@mikro-orm/core';
import { BaseEntity } from '../../core/entities/base.entity';
export declare class TodoItem extends BaseEntity {
title: string;
description?: string;
completed: boolean;
dueDate?: Date;
}
export declare const TodoItemSchema: EntitySchema<TodoItem, never, import("@mikro-orm/core").EntityCtor<TodoItem>>;
//# sourceMappingURL=todo.entity.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"todo.entity.d.ts","sourceRoot":"","sources":["../../../src/todo/entities/todo.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,qBAAa,QAAS,SAAQ,UAAU;IACtC,KAAK,EAAG,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAS;IAC3B,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED,eAAO,MAAM,cAAc,+EAezB,CAAC"}

27
dist/todo/entities/todo.entity.js vendored Normal file
View File

@@ -0,0 +1,27 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TodoItemSchema = exports.TodoItem = void 0;
const core_1 = require("@mikro-orm/core");
const base_entity_1 = require("../../core/entities/base.entity");
class TodoItem extends base_entity_1.BaseEntity {
constructor() {
super(...arguments);
this.completed = false;
}
}
exports.TodoItem = TodoItem;
exports.TodoItemSchema = new core_1.EntitySchema({
class: TodoItem,
tableName: 'todo_items',
properties: {
id: { type: 'uuid', primary: true },
tenantId: { type: 'string' },
metadata: { type: 'json', nullable: true },
createdAt: { type: 'date', defaultRaw: 'now()' },
updatedAt: { type: 'date', defaultRaw: 'now()' },
title: { type: 'string' },
description: { type: 'text', nullable: true },
completed: { type: 'boolean', default: false },
dueDate: { type: 'date', nullable: true },
},
});