@tomei/product
Version:
NestJS package for product module
80 lines (67 loc) • 1.35 kB
text/typescript
import {
BelongsTo,
Column,
CreatedAt,
DataType,
ForeignKey,
Model,
Table,
UpdatedAt,
} from 'sequelize-typescript';
import { StoreModel } from './store.entity';
import { ProductModel } from './product.entity';
export class StoreProductModel extends Model {
StoreProductId: string;
ProductId: string;
StoreId: string;
Status: string;
PriceFormula: string;
AddedById: string;
AddedAt: Date;
RemovedById: string;
RemovedAt: Date;
Product: ProductModel;
Store: StoreModel;
ProductVariant: ProductModel;
}