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

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 },
},
});