adds comments
This commit is contained in:
19
web/src/lib/models/comment.ts
Normal file
19
web/src/lib/models/comment.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import type { User } from "$lib/stores/user_store";
|
||||
|
||||
export class Comment {
|
||||
id?: string;
|
||||
text: string;
|
||||
rating: number;
|
||||
author: string;
|
||||
trail: string;
|
||||
expand?: {
|
||||
author: User
|
||||
}
|
||||
|
||||
constructor(text: string, rating: number, author: string, trail: string) {
|
||||
this.text = text;
|
||||
this.rating = rating;
|
||||
this.author = author;
|
||||
this.trail = trail;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user