Some changes in entities

This commit is contained in:
2023-11-24 17:53:25 +03:00
parent 04aefa8af7
commit 0b471ee5de
2 changed files with 12 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
import { Entity, PrimaryGeneratedColumn, Column, OneToOne, JoinColumn } from 'typeorm';
import { Column, Entity, JoinColumn, OneToOne, PrimaryGeneratedColumn } from 'typeorm';
import { Admin } from './admin.entity';
@Entity()
export class Post {
@@ -14,10 +14,13 @@ export class Post {
@Column({ nullable: false })
from_user_id: string;
@Column()
text: string;
@Column()
media_group_id: string;
@Column({ type: 'timestamptz' })
timestamps: Date;