Files
milsim-site-v4/shared/types/discussion.ts

24 lines
504 B
TypeScript

export interface DiscussionPost<T = any> {
id: number;
type: string;
poster_id: number;
poster_name?: string;
title: string;
content: T;
created_at: Date;
updated_at: Date;
is_deleted: boolean;
is_locked: boolean;
is_open: boolean;
comments?: DiscussionComment[];
}
export interface DiscussionComment {
id?: number;
post_id: number;
poster_id: number;
content: string;
created_at: Date;
updated_at: Date;
is_deleted: boolean;
}