17 lines
313 B
TypeScript
17 lines
313 B
TypeScript
import { ObjectId } from "mongodb";
|
|
|
|
export interface Location {
|
|
id: ObjectId;
|
|
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;
|
|
};
|