diff --git a/bruno/Common Cents/Categories/LOC POST Category.bru b/bruno/Common Cents/Categories/LOC POST Category.bru index 97251b0..3e6e20f 100644 --- a/bruno/Common Cents/Categories/LOC POST Category.bru +++ b/bruno/Common Cents/Categories/LOC POST Category.bru @@ -12,6 +12,6 @@ post { body:json { { - "name": "Gas" + "name": "Groceries:Food" } } diff --git a/bruno/Common Cents/Merchants/LOC POST Merchant.bru b/bruno/Common Cents/Merchants/LOC POST Merchant.bru index b5665ab..1279825 100644 --- a/bruno/Common Cents/Merchants/LOC POST Merchant.bru +++ b/bruno/Common Cents/Merchants/LOC POST Merchant.bru @@ -12,6 +12,6 @@ post { body:json { { - "name": "Casey's" + "name": "Walmart" } } diff --git a/bruno/Common Cents/Tags/LOC POST Tag.bru b/bruno/Common Cents/Tags/LOC POST Tag.bru index 872b5e5..d9657c3 100644 --- a/bruno/Common Cents/Tags/LOC POST Tag.bru +++ b/bruno/Common Cents/Tags/LOC POST Tag.bru @@ -12,6 +12,6 @@ post { body:json { { - "name": "Joe" + "name": "Sienna" } } diff --git a/src/expenses/entities/expense.entity.ts b/src/expenses/entities/expense.entity.ts index 75b7cab..bc83082 100644 --- a/src/expenses/entities/expense.entity.ts +++ b/src/expenses/entities/expense.entity.ts @@ -1,4 +1,13 @@ -import { Column, Entity, JoinTable, ManyToMany, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'; +import { + Column, + CreateDateColumn, + Entity, + JoinTable, + ManyToMany, + ManyToOne, + PrimaryGeneratedColumn, + UpdateDateColumn, +} from 'typeorm'; import { Tag } from '../../tags/entities/tag.entity'; import { Category } from '../../categories/entities/category.entity'; import { Merchant } from '../../merchants/entities/merchant.entity'; @@ -26,4 +35,10 @@ export class Expense { @ManyToMany(() => Tag, { nullable: true, eager: true }) @JoinTable() tags: Tag[]; + + @CreateDateColumn() + createdAt: Date; + + @UpdateDateColumn() + updatedAt: Date; }