import { TutorEntity } from './tutor.entity';
import { ForumStatusEntity } from './forum-status.entity';
import { Forum_threadEntity } from './forum_thread.entity';

@Entity({ name: 'forum_post' })
export class Forum_postEntity extends AbstractEntity {
  @Column({ type: 'text' })
  content: string;

  @OneToOne(() => ForumStatusEntity)
  @JoinColumn({ name: 'forum_status_id', referencedColumnName: 'id' })
  status: ForumStatusEntity;

  @ManyToOne(() => Forum_threadEntity)