Add soft delete to metadata (#2072)

This commit is contained in:
Weiko
2023-10-16 22:04:17 +02:00
committed by GitHub
parent 07ae0fa76c
commit c06a8a9213
10 changed files with 57 additions and 15 deletions

View File

@ -3,6 +3,7 @@ import { Field, ID, ObjectType } from '@nestjs/graphql';
import {
Column,
CreateDateColumn,
DeleteDateColumn,
Entity,
JoinColumn,
ManyToOne,
@ -76,8 +77,7 @@ export class FieldMetadata {
@Column({ nullable: true, name: 'icon' })
icon: string;
@Field({ nullable: true })
@Column({ nullable: true, name: 'placeholder' })
@Field({ nullable: true, deprecationReason: 'Use label name instead' })
placeholder: string;
@Column('text', { nullable: true, array: true })
@ -109,4 +109,7 @@ export class FieldMetadata {
@Field()
@UpdateDateColumn({ name: 'updated_at' })
updatedAt: Date;
@DeleteDateColumn({ name: 'deleted_at' })
deletedAt?: Date;
}