Initial commit: NestJS NextJS pnpm monorepo

This commit is contained in:
Marco_205 committed 2026-10-12 07:20:37 +00:00
commit 610dcf202b
175 files changed
+25172

No files matched your search

@@ -0,0 +1,17 @@
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document, Types } from 'mongoose';
@Schema({ timestamps: false })
export class Stock extends Document {
@Prop({ required: true })
name: string;
@Prop({ type: Types.ObjectId, ref: 'Location', required: true })
locationId: Types.ObjectId;
@Prop({ })
areas: Types.Array<string>;
}
export const StockSchema = SchemaFactory.createForClass(Stock);