Files
evidencija-rezija/app/lib/db-types.ts

17 lines
313 B
TypeScript

import { ObjectId } from "mongodb";
export interface Location {
_id: string;
name: string;
bills: Bill[];
/** the value is encoded as yyyymm (i.e. 202301) */
yearMonth: number;
};
export interface Bill {
_id: ObjectId;
name: string;
paid: boolean;
document?: string|null;
};