initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
||||
|
||||
@Entity()
|
||||
export class Comments {
|
||||
@PrimaryGeneratedColumn()
|
||||
com_id: number;
|
||||
|
||||
@Column({nullable:false})
|
||||
author: number;
|
||||
|
||||
@Column({nullable:false})
|
||||
comment: string;
|
||||
|
||||
@Column({default: 0})
|
||||
video: string;
|
||||
|
||||
@Column({default:0})
|
||||
profile_id:number;
|
||||
|
||||
@Column({nullable:false})
|
||||
vid_id: number;
|
||||
|
||||
@Column({default: Date.now().toLocaleString()})
|
||||
commented_on: string;
|
||||
}
|
||||
Reference in New Issue
Block a user