removed sub-categories
This commit is contained in:
parent
b7acc9e352
commit
fdf0efd17f
22 changed files with 71 additions and 295 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';
|
||||
|
||||
|
|
@ -21,14 +20,11 @@ export class Expense {
|
|||
@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