echadospalante-core
Version:
This package contains the core of the echadospalante project, it contains the domain entities, helpers, and other utilities that are shared between the different services.
45 lines (34 loc) • 951 B
text/typescript
import {
Column,
CreateDateColumn,
Entity,
JoinColumn,
ManyToOne,
PrimaryGeneratedColumn,
UpdateDateColumn,
} from "typeorm";
import { NotificationType } from "../../../domain/notifications";
import { NotificationStatus } from "../../../domain/notifications/notification";
import { UserDetailData } from "./user-detail.data";
export class NotificationData {
id: string;
title: string;
type: NotificationType;
status: NotificationStatus;
description: string;
createdAt: Date;
updatedAt: Date;
userDetailId: string;
user: UserDetailData;
}