removed sub-categories

This commit is contained in:
Joe Arndt 2026-02-13 11:47:12 -06:00
parent b7acc9e352
commit fdf0efd17f
22 changed files with 71 additions and 295 deletions

View file

@ -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;