@tomei/live-price
Version:
Tomei live-price Package
106 lines (91 loc) • 2.1 kB
text/typescript
import {
BelongsTo,
Column,
DataType,
ForeignKey,
Model,
Table,
} from 'sequelize-typescript';
import { NonSourceFeedName } from '../enum/feed.enum';
import FeedModel from './price-feed.entity';
import { ITomeiPriceLatestAttr } from '../interfaces/price-tomei-price-latest-attr.interface';
import TomeiPriceHistoryModel from './price-tomei-price-history.entity';
export default class TomeiPriceLatestModel
extends Model
implements ITomeiPriceLatestAttr
{
FeedName: NonSourceFeedName;
TomeiPriceHistoryId: string;
Currency: string;
CompanyCode: string;
DateTime: Date;
AdjustBuyPercentage: number;
AdjustSellPercentage: number;
TomeiBuyPrice: number;
TomeiSellPrice: number;
AdjustedById: string;
AdjustedDateTime: Date;
UpdatedAt: Date;
Feed: FeedModel;
TomeiPriceHistory: TomeiPriceHistoryModel;
}