@tomei/live-price
Version:
Tomei live-price Package
114 lines (97 loc) • 2.21 kB
text/typescript
import { ITomeiPriceHistoryAttr } from '../interfaces/price-tomei-price-history-attr.interface';
import {
BelongsTo,
Column,
DataType,
ForeignKey,
Model,
Table,
} from 'sequelize-typescript';
import FeedHistoryModel from './price-feed-history.entity';
import FeedModel from './price-feed.entity';
import { NonSourceFeedName } from '../enum/feed.enum';
export default class TomeiPriceHistoryModel
extends Model
implements ITomeiPriceHistoryAttr
{
TomeiPriceHistoryId: string;
FeedHistoryId: string;
FeedName: NonSourceFeedName;
Currency: string;
DateTime: Date;
BuyLabourCharges: number;
SellLabourCharges: number;
AdjustBuyPercentage: number;
AdjustSellPercentage: number;
TomeiBuyPrice: number;
TomeiSellPrice: number;
AdjustedById: string;
AdjustedDateTime: Date;
IsManualPriceActivatedYN: string;
FeedHistory: FeedHistoryModel;
Feed: FeedModel;
}