update entity
This commit is contained in:
@@ -5,7 +5,7 @@ import { ulid } from 'ulid';
|
|||||||
@Index({ properties: ['deletedAt'] })
|
@Index({ properties: ['deletedAt'] })
|
||||||
@Index({ properties: ['createdAt'] })
|
@Index({ properties: ['createdAt'] })
|
||||||
export abstract class BaseEntity {
|
export abstract class BaseEntity {
|
||||||
[OptionalProps]?: 'id' | 'createdAt' | 'updatedAt' | 'deletedAt';
|
[OptionalProps]?: 'id' | 'createdAt' | 'updatedAt' | 'deletedAt'|'orderNumber';
|
||||||
|
|
||||||
@PrimaryKey({ type: 'string', columnType: 'char(26)' })
|
@PrimaryKey({ type: 'string', columnType: 'char(26)' })
|
||||||
id: string = ulid();
|
id: string = ulid();
|
||||||
|
|||||||
@@ -7,9 +7,7 @@ import {
|
|||||||
Collection,
|
Collection,
|
||||||
Cascade,
|
Cascade,
|
||||||
Enum,
|
Enum,
|
||||||
BeforeCreate,
|
|
||||||
Unique,
|
Unique,
|
||||||
type EventArgs,
|
|
||||||
} from '@mikro-orm/core';
|
} from '@mikro-orm/core';
|
||||||
import { BaseEntity } from '../../../common/entities/base.entity';
|
import { BaseEntity } from '../../../common/entities/base.entity';
|
||||||
import { OrderCouponDetail, OrderStatus } from '../interface/order.interface';
|
import { OrderCouponDetail, OrderStatus } from '../interface/order.interface';
|
||||||
|
|||||||
Reference in New Issue
Block a user