This commit is contained in:
2025-11-10 22:42:32 +03:30
parent 45ca2fde06
commit bca4b75b6a
21 changed files with 54 additions and 654 deletions
+3 -1
View File
@@ -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';