Initial commit - Event Planner application
This commit is contained in:
23
dist/core/entities/notification-rule.entity.js
vendored
Normal file
23
dist/core/entities/notification-rule.entity.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.NotificationRuleSchema = exports.NotificationRule = void 0;
|
||||
const core_1 = require("@mikro-orm/core");
|
||||
const base_entity_1 = require("./base.entity");
|
||||
class NotificationRule extends base_entity_1.BaseEntity {
|
||||
}
|
||||
exports.NotificationRule = NotificationRule;
|
||||
exports.NotificationRuleSchema = new core_1.EntitySchema({
|
||||
class: NotificationRule,
|
||||
tableName: 'notification_rules',
|
||||
properties: {
|
||||
id: { primary: true, type: 'uuid', defaultRaw: 'uuid_generate_v4()' },
|
||||
tenantId: { type: 'string' },
|
||||
metadata: { type: 'json', nullable: true },
|
||||
createdAt: { type: 'date', defaultRaw: 'now()' },
|
||||
updatedAt: { type: 'date', defaultRaw: 'now()' },
|
||||
module: { type: 'string' },
|
||||
event: { type: 'string' },
|
||||
channels: { type: 'json' },
|
||||
conditions: { type: 'json', nullable: true },
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user