Files
dsc-api/src/modules/contact-us/entities/contact-us.entity.ts
T
2025-02-04 14:05:37 +03:30

25 lines
591 B
TypeScript

import { Column, Entity } from "typeorm";
import { BaseEntity } from "../../../common/entities/base.entity";
@Entity()
export class ContactUs extends BaseEntity {
@Column({ type: "int", generated: "identity", insert: false })
numericId: number;
@Column({ type: "varchar", length: 150, nullable: false })
title: string;
@Column({ type: "varchar", length: 350 })
fullName: string;
@Column({ type: "varchar", length: 150 })
email: string;
@Column({ type: "text", nullable: false })
content: string;
@Column({ type: "boolean", default: false })
isRead: boolean;
}