postal Code & commandHandler update

This commit is contained in:
Julian Krauser 2025-01-03 19:26:33 +01:00
parent 14677d2030
commit dd72f37856
13 changed files with 70 additions and 76 deletions

View file

@ -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",