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

18
dist/guest/entities/guest.entity.d.ts vendored Normal file
View File

@@ -0,0 +1,18 @@
import { EntitySchema } from '@mikro-orm/core';
import { BaseEntity } from '../../core/entities/base.entity';
export declare class Guest extends BaseEntity {
name: string;
email?: string;
phone?: string;
rsvp: boolean;
tableId?: string;
}
export declare const GuestSchema: EntitySchema<Guest, never, import("@mikro-orm/core").EntityCtor<Guest>>;
export declare class GuestNotificationPreference extends BaseEntity {
guestId: string;
email: boolean;
whatsapp: boolean;
metadata?: Record<string, any>;
}
export declare const GuestNotificationPreferenceSchema: EntitySchema<GuestNotificationPreference, never, import("@mikro-orm/core").EntityCtor<GuestNotificationPreference>>;
//# sourceMappingURL=guest.entity.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"guest.entity.d.ts","sourceRoot":"","sources":["../../../src/guest/entities/guest.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,qBAAa,KAAM,SAAQ,UAAU;IACnC,IAAI,EAAG,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAS;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,WAAW,yEA4CtB,CAAC;AAEH,qBAAa,2BAA4B,SAAQ,UAAU;IACzD,OAAO,EAAG,MAAM,CAAC;IACjB,KAAK,EAAE,OAAO,CAAQ;IACtB,QAAQ,EAAE,OAAO,CAAS;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,iCAAiC,qHAoC5C,CAAC"}

103
dist/guest/entities/guest.entity.js vendored Normal file
View File

@@ -0,0 +1,103 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GuestNotificationPreferenceSchema = exports.GuestNotificationPreference = exports.GuestSchema = exports.Guest = void 0;
const core_1 = require("@mikro-orm/core");
const uuid_1 = require("uuid");
const base_entity_1 = require("../../core/entities/base.entity");
class Guest extends base_entity_1.BaseEntity {
constructor() {
super(...arguments);
this.rsvp = false;
}
}
exports.Guest = Guest;
exports.GuestSchema = new core_1.EntitySchema({
class: Guest,
tableName: 'guests',
properties: {
id: {
type: 'uuid',
primary: true,
default: (0, uuid_1.v4)(),
},
tenantId: {
type: 'string',
},
metadata: {
type: 'json',
nullable: true,
},
createdAt: {
type: 'date',
default: new Date(),
},
updatedAt: {
type: 'date',
default: new Date(),
},
name: {
type: 'string',
},
email: {
type: 'string',
nullable: true,
},
phone: {
type: 'string',
nullable: true,
},
rsvp: {
type: 'boolean',
default: false,
},
tableId: {
type: 'uuid',
nullable: true,
},
},
});
class GuestNotificationPreference extends base_entity_1.BaseEntity {
constructor() {
super(...arguments);
this.email = true;
this.whatsapp = false;
}
}
exports.GuestNotificationPreference = GuestNotificationPreference;
exports.GuestNotificationPreferenceSchema = new core_1.EntitySchema({
class: GuestNotificationPreference,
tableName: 'guest_notification_preferences',
properties: {
id: {
type: 'uuid',
primary: true,
default: (0, uuid_1.v4)(),
},
tenantId: {
type: 'string',
},
metadata: {
type: 'json',
nullable: true,
},
createdAt: {
type: 'date',
default: new Date(),
},
updatedAt: {
type: 'date',
default: new Date(),
},
guestId: {
type: 'uuid',
},
email: {
type: 'boolean',
default: true,
},
whatsapp: {
type: 'boolean',
default: false,
},
},
});