25 lines
591 B
TypeScript
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;
|
|
}
|