25 lines
443 B
TypeScript
25 lines
443 B
TypeScript
import {Category} from "@/models/Category";
|
|
import {User} from "@/models/User";
|
|
|
|
export class Transaction {
|
|
id: String;
|
|
type: TransactionType;
|
|
user: User
|
|
category: Category;
|
|
comment: string;
|
|
date: Date;
|
|
amount: number
|
|
parentId: String
|
|
isDone: boolean;
|
|
}
|
|
|
|
export class TransactionCategoriesSum {
|
|
category: Category;
|
|
sum: number
|
|
}
|
|
|
|
|
|
export class TransactionType {
|
|
code: string;
|
|
name: string;
|
|
} |