@tomei/product
Version:
NestJS package for product module
151 lines (118 loc) • 4.03 kB
text/typescript
import {
Column,
CreatedAt,
DataType,
HasMany,
Table,
UpdatedAt,
Model,
BelongsToMany,
HasOne,
} from 'sequelize-typescript';
import { ProductCertificateModel } from './product-certificate.entity';
import { ProductTagModel } from './product-tag.entity';
import { ProductBrandModel } from './product-brand.entity';
import { ProductCustomizeOptionModel } from './product-customize-option.entity';
import { ProductMaterialModel } from './product-material.entity';
import { SettingsCollectionModel } from './settings-collection.entity';
import { ProductCollectionsModel } from './product-collection.entity';
import { SettingsCategoryModel } from './settings-category.entity';
import { ProductCategoriesModel } from './product-category.entity';
import { StoreModel } from './store.entity';
import { StoreProductModel } from './store-product.entity';
import { SettingsGroupModel } from './settings-group.entity';
import { ProductGroupModel } from './product-group.entity';
import { ProductWithInventoryModel } from './product-with-inventory.entity';
export class ProductModel extends Model {
ProductId: string;
Name: string;
Description: string;
VariantLevels: number;
VariantTypeLevel1: string;
VariantTypeLevel2: string;
VariantTypeLevel3: string;
UpdatedSSYN: string;
SKU: string;
PreviousSKU: string;
Type: string;
CreatedAt: Date;
CreatedById: string;
UpdatedAt: Date;
UpdatedById: string;
Remark: string;
IsTaxableYN: string;
TaxCode: string;
IsPriceInclusiveTaxYN: string;
Status: string;
VerifiedYN: string;
VerifiedById: string;
VerifiedAt: Date;
Certificates: ProductCertificateModel[];
Tags: ProductTagModel[];
Brand: ProductBrandModel[];
CustomizeOptions: ProductCustomizeOptionModel[];
Materials: ProductMaterialModel[];
Collections: SettingsCollectionModel[];
Categories: SettingsCategoryModel[];
Stores: StoreModel[];
Groups: SettingsGroupModel[];
ProductWithInventory: ProductWithInventoryModel[];
}