update
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { PrimaryKey, Property, sql, OptionalProps } from '@mikro-orm/core';
|
||||
import { PrimaryKey, Property, sql, Filter, OptionalProps } from '@mikro-orm/core';
|
||||
import { ulid } from 'ulid';
|
||||
|
||||
@Filter({ name: 'notDeleted', cond: { deletedAt: null }, default: true })
|
||||
export abstract class BaseEntity {
|
||||
[OptionalProps]?: 'id' | 'createdAt' | 'updatedAt' | 'deletedAt';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user