UNPKG

@tomei/live-price

Version:

Tomei live-price Package

22 lines (21 loc) 806 B
import { Model } 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; }