Added pretty much everything except discussion forums
This commit is contained in:
24
shared/types/discussion.ts
Normal file
24
shared/types/discussion.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user