@tomei/live-price
Version:
Tomei live-price Package
84 lines (73 loc) • 1.64 kB
text/typescript
import {
BelongsTo,
Column,
DataType,
ForeignKey,
Model,
Table,
} from 'sequelize-typescript';
import {
ManualPriceStatus,
NonSourceFeedName,
SourceFeedName,
} from '../enum/feed.enum';
import { IPriceFeedManualPriceHistoryAttr } from '../interfaces/price-feed-manual-price-history-attr.interface';
import FeedModel from './price-feed.entity';
export default class FeedManualPriceHistoryModel
extends Model
implements IPriceFeedManualPriceHistoryAttr
{
FeedManualPriceHistoryId: string;
FeedName: SourceFeedName | NonSourceFeedName;
BuyPrice: number;
SellPrice: number;
Status: ManualPriceStatus;
ActivationDateTime: Date;
ActivatedById: string;
DeactivationDateTime: Date;
DeactivatedById: string;
Feed: FeedModel;
}