seed users
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
import { Entity, Property, OneToOne, OneToMany, Collection, Cascade } from '@mikro-orm/core';
|
||||
import { Entity, Property, OneToMany, Collection, Cascade } from '@mikro-orm/core';
|
||||
import { BaseEntity } from '../../../common/entities/base.entity';
|
||||
import { Restaurant } from '../../restaurants/entities/restaurant.entity';
|
||||
import { UserAddress } from './user-address.entity';
|
||||
|
||||
@Entity({ tableName: 'users' })
|
||||
export class User extends BaseEntity {
|
||||
@OneToOne(() => Restaurant, { owner: true })
|
||||
restaurant!: Restaurant;
|
||||
|
||||
@Property()
|
||||
firstName!: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user