import { Comment } from './comment';

export interface Article {
    id: number;
    title: string;
    type: string;
    short_description: string;
    time_estimate: number;
    difficulty: string;
    usage_count: number;
    created_at: string;
    last_change: string;
    author: string;
    topic: string;
    rating: number;
    content: JSON;
    files: FileInfo[];
    status: string;
    comments: Comment[];
}

export interface FileInfo {
    id: number;
    name: string;
}
