import { DbModel } from "src/app/model/entities/db-model";

export interface News extends DbModel {
  title: string;
  content: string;
  published: boolean;
  attachments: string[];
}

export interface AttachmentInput {
  filename: string;
  base64: string;
}

export interface NewsCreateInput {
  title: string;
  content: string;
  published: boolean;
  attachments: Set<AttachmentInput>;
}

export interface NewsUpdateInput {
  id: number;
  title?: string;
  content?: string;
  published: boolean;
  attachments?: Set<AttachmentInput>;
}
