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,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);
|
||||
Reference in new issue
Block a user