Comment
Source: lyda-shared/src/Models/db/lyda/Comment.ts
Dependencies
import {User} from "./User.js";
import {Track} from "./Track.js";
Comment
Type: interface
export interface Comment {
comments?: Comment[];
user?: User;
track?: Track;
canEdit?: boolean;
id: number;
parent_id: number;
track_id: number;
user_id: number;
content: string;
created_at: Date;
potentially_harmful: boolean;
hidden: boolean;
}
Properties
| Property | Type | Required | Description |
|---|---|---|---|
| comments | Comment[] | No | - |
| user | User | No | - |
| track | Track | No | - |
| canEdit | boolean | No | - |
| id | number | Yes | - |
| parent_id | number | Yes | - |
| track_id | number | Yes | - |
| user_id | number | Yes | - |
| content | string | Yes | - |
| created_at | Date | Yes | - |
| potentially_harmful | boolean | Yes | - |
| hidden | boolean | Yes | - |