define type properly

This commit is contained in:
Ulf Gebhardt 2023-02-02 04:08:07 +01:00
parent f577e3258a
commit 357588a680
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 11 additions and 11 deletions

View File

@ -14,19 +14,19 @@ export class EventProtocol extends BaseEntity {
createdAt: Date
@Column({ name: 'user_id', unsigned: true, nullable: false })
userId: number | null
userId: number
@Column({ name: 'x_user_id', unsigned: true, nullable: true })
xUserId: number | null
xUserId: number
@Column({ name: 'x_community_id', unsigned: true, nullable: true })
xCommunityId: number | null
xCommunityId: number
@Column({ name: 'transaction_id', unsigned: true, nullable: true })
transactionId: number | null
transactionId: number
@Column({ name: 'contribution_id', unsigned: true, nullable: true })
contributionId: number | null
contributionId: number
@Column({
type: 'decimal',
@ -35,5 +35,5 @@ export class EventProtocol extends BaseEntity {
nullable: true,
transformer: DecimalTransformer,
})
amount: Decimal | null
amount: Decimal
}

View File

@ -16,16 +16,16 @@ export class EventProtocol extends BaseEntity {
@Column({ name: 'user_id', unsigned: true, nullable: false })
userId: number
@Column({ name: 'x_user_id', unsigned: true, nullable: true })
@Column({ name: 'x_user_id', type: 'int', unsigned: true, nullable: true })
xUserId: number | null
@Column({ name: 'x_community_id', unsigned: true, nullable: true })
@Column({ name: 'x_community_id', type: 'int', unsigned: true, nullable: true })
xCommunityId: number | null
@Column({ name: 'transaction_id', unsigned: true, nullable: true })
@Column({ name: 'transaction_id', type: 'int', unsigned: true, nullable: true })
transactionId: number | null
@Column({ name: 'contribution_id', unsigned: true, nullable: true })
@Column({ name: 'contribution_id', type: 'int', unsigned: true, nullable: true })
contributionId: number | null
@Column({
@ -37,6 +37,6 @@ export class EventProtocol extends BaseEntity {
})
amount: Decimal | null
@Column({ name: 'message_id', unsigned: true, nullable: true })
@Column({ name: 'message_id', type: 'int', unsigned: true, nullable: true })
messageId: number | null
}