adds comments

This commit is contained in:
Christian Beutel
2024-04-03 22:28:34 +02:00
parent 8af1efaf20
commit 76522c808a
23 changed files with 714 additions and 46 deletions

View 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;
}
}