add: change implement enum and distribution
This commit is contained in:
@@ -6,11 +6,7 @@ import {
|
||||
} from 'typeorm';
|
||||
import { Product } from './product.entity';
|
||||
import { BaseModel } from '../../config/basemodel.entity';
|
||||
|
||||
enum Type {
|
||||
NORMAL,
|
||||
PROMO,
|
||||
}
|
||||
import { productType } from '../../helper/enum-list';
|
||||
|
||||
@Entity()
|
||||
export class ProductHistoryPrice extends BaseModel {
|
||||
@@ -30,5 +26,5 @@ export class ProductHistoryPrice extends BaseModel {
|
||||
endDate: Date;
|
||||
|
||||
@Column('text')
|
||||
type: Type;
|
||||
type: productType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user