Rewriting database and API to transform to a ticket shop
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user