postal Code & commandHandler update
This commit is contained in:
parent
14677d2030
commit
dd72f37856
13 changed files with 70 additions and 76 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Column, Entity, JoinColumn, ManyToOne, PrimaryColumn } from "typeorm";
|
||||
import { Column, Entity, ManyToOne, PrimaryColumn } from "typeorm";
|
||||
import { member } from "./member";
|
||||
import { communicationType } from "./communicationType";
|
||||
|
||||
|
@ -19,6 +19,9 @@ export class communication {
|
|||
@Column({ type: "varchar", length: 255, nullable: true })
|
||||
email: string;
|
||||
|
||||
@Column({ type: "varchar", length: 255, nullable: true })
|
||||
postalCode: string;
|
||||
|
||||
@Column({ type: "varchar", length: 255, nullable: true })
|
||||
city: string;
|
||||
|
||||
|
@ -31,6 +34,12 @@ export class communication {
|
|||
@Column({ type: "varchar", length: 255, nullable: true })
|
||||
streetNumberAddition: string;
|
||||
|
||||
@Column()
|
||||
memberId: number;
|
||||
|
||||
@Column()
|
||||
typeId: number;
|
||||
|
||||
@ManyToOne(() => communicationType, (communicationType) => communicationType.communications, {
|
||||
nullable: false,
|
||||
onDelete: "RESTRICT",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue