@tomei/live-price
Version:
Tomei live-price Package
78 lines (68 loc) • 1.52 kB
text/typescript
import {
BelongsTo,
Column,
DataType,
ForeignKey,
Model,
Table,
} from 'sequelize-typescript';
import {
ActivationTrigger,
CutOffStatus,
SourceFeedName,
} from '../enum/feed.enum';
import { IPriceFeedCutOffHistoryAttr } from '../interfaces/price-feed-cut-off-history-attr.interface';
import SourceFeedModel from './price-source-feed.entity';
export default class FeedCutOffHistoryModel
extends Model
implements IPriceFeedCutOffHistoryAttr
{
FeedCutOffHistoryId: string;
FeedName: SourceFeedName;
Status: CutOffStatus;
ActivationDateTime: Date;
ActivationTrigger: ActivationTrigger;
ActivatedById: string;
DeactivationDateTime: Date;
DeactivatedById: string;
Feed: SourceFeedModel;
}