UNPKG

@tomei/live-price

Version:

Tomei live-price Package

16 lines (15 loc) 774 B
import { Model } from 'sequelize-typescript'; import { IFeedAttr } from '../interfaces/price-feed-attr.interface'; import SourceFeedModel from './price-source-feed.entity'; import FeedManualPriceHistoryModel from './price-feed-manual-price-history.entity'; import TomeiPriceHistoryModel from './price-tomei-price-history.entity'; import { NonSourceFeedName, SourceFeedName } from '../enum/feed.enum'; export default class FeedModel extends Model implements IFeedAttr { FeedName: SourceFeedName | NonSourceFeedName; IsSourcePriceYN: string; IsManualPriceActivatedYN: string; CurrentManualPriceHistoryId: string; FeedManualPriceHistories: FeedManualPriceHistoryModel[]; TomeiPriceHistories: TomeiPriceHistoryModel[]; SourceFeed: SourceFeedModel; }