Skip to content

Commit

Permalink
chore: user table
Browse files Browse the repository at this point in the history
  • Loading branch information
incredible-phoenix246 committed Aug 10, 2024
1 parent b16153a commit 9bc4d4f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/models/faq.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
} from "typeorm";
import ExtendedBaseEntity from "./extended-base-entity";
import { UserRole } from "../enums/userRoles";

Expand All @@ -18,6 +24,12 @@ class FAQ extends ExtendedBaseEntity {

@Column({ nullable: false, default: UserRole.SUPER_ADMIN })
createdBy: string;

@CreateDateColumn()
created_at: Date;

@UpdateDateColumn()
updated_at: Date;
}

export { FAQ };

0 comments on commit 9bc4d4f

Please sign in to comment.