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.
42 lines (32 loc) • 871 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 { UserData } from "./user.data";
export class NotificationData {
id: string;
title: string;
type: NotificationType;
status: NotificationStatus;
description: string;
user: UserData;
createdAt: Date;
updatedAt: Date;
}