Skip to content

Commit

Permalink
#38 implement Entry, UserData, User and Debtor interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Dorfinger committed Nov 10, 2021
1 parent b5be2ff commit d51d6fd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
30 changes: 30 additions & 0 deletions src/app/models/models.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
export interface Entry {
id: number;
date: string;
amount: number;
reason: string;
repeat: {};
object?: string;
deleted: boolean;
restored: boolean;
edited: boolean;
deletedDate?: number;
restoredDate?: number;
}

export interface UserData {
email: string;
username: string;
lang: 'de' | 'en';
}

export interface User {
debtors: Debtor[];
theme: any;
userdata: UserData;
}

export interface Debtor {
name: string;
entries: Entry[];
}
4 changes: 0 additions & 4 deletions src/app/models/user.ts

This file was deleted.

0 comments on commit d51d6fd

Please sign in to comment.