Initial web app consumption/integration (#5)
Co-authored-by: Joe Arndt <jmarndt@users.noreply.github.com> Reviewed-on: #5
This commit is contained in:
parent
3f258bcd33
commit
df6733caa9
41 changed files with 385 additions and 353 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import { Column, Entity, JoinTable, ManyToMany, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
|
||||
import { Tag } from '../../tags/entities/tag.entity';
|
||||
import { SubCategory } from '../../sub-categories/entities/sub-category.entity';
|
||||
import { Category } from '../../categories/entities/category.entity';
|
||||
import { Merchant } from '../../merchants/entities/merchant.entity';
|
||||
|
||||
|
|
@ -10,25 +9,16 @@ export class Expense {
|
|||
id: string;
|
||||
|
||||
@Column()
|
||||
year: string;
|
||||
|
||||
@Column()
|
||||
month: string;
|
||||
|
||||
@Column()
|
||||
day: string;
|
||||
date: string;
|
||||
|
||||
@Column()
|
||||
cents: number;
|
||||
|
||||
@Column({ nullable: true })
|
||||
description: string;
|
||||
|
||||
@ManyToOne(() => Category, { eager: true })
|
||||
category: Category;
|
||||
|
||||
@ManyToOne(() => SubCategory, { nullable: true, eager: true })
|
||||
subCategory: SubCategory;
|
||||
@Column({ nullable: true })
|
||||
note: string;
|
||||
|
||||
@ManyToOne(() => Merchant, { nullable: true, eager: true })
|
||||
merchant: Merchant;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue