@tomei/live-price
Version:
Tomei live-price Package
64 lines (54 loc) • 1.62 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 PriceCompanyFeedAccess from './price-company-feed-access.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;
Weight: number;
FeedManualPriceHistories: FeedManualPriceHistoryModel[];
TomeiPriceHistories: TomeiPriceHistoryModel[];
CompanyFeedAccesses: PriceCompanyFeedAccess[];
SourceFeed: SourceFeedModel;
}