Initial commit: NestJS NextJS pnpm monorepo
This commit is contained in:
commit
610dcf202b
175 files changed
+25172
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
|
||||
import { Document, Types } from 'mongoose';
|
||||
|
||||
@Schema()
|
||||
export class ArticleVariant extends Document {
|
||||
@Prop({ type: Types.ObjectId, ref: 'Article', required: true })
|
||||
articleId: Types.ObjectId;
|
||||
|
||||
@Prop({ type: Types.ObjectId, ref: 'Manufacturer', required: true })
|
||||
manufacturerId: Types.ObjectId;
|
||||
|
||||
@Prop()
|
||||
supplierArticleNumber?: string;
|
||||
|
||||
@Prop()
|
||||
packagingUnit?: string; // z. B. "Karton 12 Stk"
|
||||
|
||||
@Prop({ type: Object })
|
||||
extra?: Record<string, any>;
|
||||
}
|
||||
|
||||
|
||||
export const ArticleVariantSchema = SchemaFactory.createForClass(ArticleVariant);
|
||||
Reference in new issue
Block a user