@tomei/live-price
Version:
Tomei live-price Package
54 lines (46 loc) • 1.35 kB
text/typescript
import {
Column,
DataType,
HasMany,
Table,
Model,
HasOne,
} 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;
}