@tomei/live-price
Version:
Tomei live-price Package
74 lines (63 loc) • 1.62 kB
text/typescript
import {
Column,
DataType,
HasMany,
Table,
Model,
ForeignKey,
BelongsTo,
} from 'sequelize-typescript';
import FeedHistoryModel from './price-feed-history.entity';
import FeedCutOffHistoryModel from './price-feed-cut-off-history.entity';
import { ISourceFeedAttr } from '../interfaces/price-source-feed-attr.interface';
import FeedModel from './price-feed.entity';
import { SourceFeedName } from '../enum/feed.enum';
export default class SourceFeedModel extends Model implements ISourceFeedAttr {
FeedName: SourceFeedName;
Status: string;
IsSourceFeedAvailableYN: string;
IsFeedCutOffYN: string;
AutomaticCutOffVariance: number;
AutomaticCutOffMinutes: number;
CurrentCutOffHistoryId: string;
Feed: FeedModel;
FeedHistories: FeedHistoryModel[];
FeedCutOffHistories: FeedCutOffHistoryModel[];
}