better dto/entity structure for GET/POST
This commit is contained in:
parent
8f846bd253
commit
389ef8c7ce
9 changed files with 106 additions and 77 deletions
|
|
@ -18,7 +18,13 @@ export class Expense {
|
|||
id: string;
|
||||
|
||||
@Column()
|
||||
date: string;
|
||||
year: number;
|
||||
|
||||
@Column()
|
||||
month: number;
|
||||
|
||||
@Column()
|
||||
day: number;
|
||||
|
||||
@Column()
|
||||
cents: number;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue