mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add softdelete feature to contributionlinks
This commit is contained in:
parent
e71725686c
commit
a881103c5f
@ -1,5 +1,5 @@
|
||||
import Decimal from 'decimal.js-light'
|
||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
|
||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn } from 'typeorm'
|
||||
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
||||
|
||||
@Entity('contribution_links')
|
||||
@ -75,7 +75,7 @@ export class ContributionLinks extends BaseEntity {
|
||||
@Column({ name: 'created_at', type: 'datetime', nullable: true, default: null })
|
||||
createdAt: Date | null
|
||||
|
||||
@Column({ name: 'deleted_at', type: 'datetime', nullable: true, default: null })
|
||||
@DeleteDateColumn()
|
||||
deletedAt: Date | null
|
||||
|
||||
@Column({ length: 24, nullable: true, collation: 'utf8mb4_unicode_ci' })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user