fix nullable fields in database entity

This commit is contained in:
Ulf Gebhardt 2023-02-02 03:55:26 +01:00
parent 214fbe0a5c
commit 2c7e36d7e2
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -17,16 +17,16 @@ export class EventProtocol extends BaseEntity {
userId: number userId: number
@Column({ name: 'x_user_id', unsigned: true, nullable: true }) @Column({ name: 'x_user_id', unsigned: true, nullable: true })
xUserId: number xUserId: number | null
@Column({ name: 'x_community_id', unsigned: true, nullable: true }) @Column({ name: 'x_community_id', unsigned: true, nullable: true })
xCommunityId: number xCommunityId: number | null
@Column({ name: 'transaction_id', unsigned: true, nullable: true }) @Column({ name: 'transaction_id', unsigned: true, nullable: true })
transactionId: number transactionId: number | null
@Column({ name: 'contribution_id', unsigned: true, nullable: true }) @Column({ name: 'contribution_id', unsigned: true, nullable: true })
contributionId: number contributionId: number | null
@Column({ @Column({
type: 'decimal', type: 'decimal',
@ -35,8 +35,8 @@ export class EventProtocol extends BaseEntity {
nullable: true, nullable: true,
transformer: DecimalTransformer, transformer: DecimalTransformer,
}) })
amount: Decimal amount: Decimal | null
@Column({ name: 'message_id', unsigned: true, nullable: true }) @Column({ name: 'message_id', unsigned: true, nullable: true })
messageId: number messageId: number | null
} }