Rewriting database and API to transform to a ticket shop

This commit is contained in:
2024-09-26 11:04:27 +02:00
parent d36dbced8e
commit da98fc73c0
88 changed files with 1040 additions and 751 deletions

View File

@@ -3,6 +3,7 @@ import { Order } from './order.model';
import { Address } from './address.model';
import { Payment } from './payment.model';
import { AccountRole } from './accountRole.model';
import { Rating } from './rating.model';
@Table({ timestamps: false })
export class Account extends Model {
@@ -38,6 +39,9 @@ export class Account extends Model {
@HasMany(() => Order)
orders: Order[]
@HasMany(() => Rating)
ratings: Rating[]
@BelongsTo(() => AccountRole)
accountRole: AccountRole
}