mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix nullable fields in database entity
This commit is contained in:
parent
214fbe0a5c
commit
2c7e36d7e2
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user