fix docker build

This commit is contained in:
Mateusz Gruszczyński
2026-04-06 16:41:32 +02:00
parent 723e3441df
commit 3f130ad9ed
10 changed files with 59 additions and 43 deletions

View File

@@ -1,4 +1,5 @@
import { Column, CreateDateColumn, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm';
import type { Relation } from 'typeorm';
import { Category } from './Category.js';
import { Expense } from './Expense.js';
import { dateTimeColumnType } from '../utils/db-column-types.js';
@@ -51,8 +52,8 @@ export class User {
createdAt!: Date;
@OneToMany(() => Category, (category) => category.user)
categories!: Category[];
categories!: Relation<Category[]>;
@OneToMany(() => Expense, (expense) => expense.user)
expenses!: Expense[];
expenses!: Relation<Expense[]>;
}