11
src/models/entities/IAddressUser.ts
Normal file
11
src/models/entities/IAddressUser.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Entity, ManyToOne, PrimaryColumn } from 'typeorm';
|
||||
import { Address } from './Address';
|
||||
|
||||
@Entity()
|
||||
export abstract class IAddressUser {
|
||||
@PrimaryColumn()
|
||||
id: number;
|
||||
|
||||
@ManyToOne(() => Address, address => address.addressUsers, { nullable: true })
|
||||
address?: Address
|
||||
}
|
||||
Reference in New Issue
Block a user