Skip to content

Commit

Permalink
fix: removes schema updates for now
Browse files Browse the repository at this point in the history
  • Loading branch information
SilveerDusk committed Jun 2, 2024
1 parent 452da1b commit 061d642
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions backend/models/basketSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export type IBasket = {
_id: Schema.Types.ObjectId;
basketName: string;
description: string;
group: Schema.Types.ObjectId;
members: Schema.Types.ObjectId[];
items: Schema.Types.ObjectId[];
created: Date;
Expand All @@ -13,7 +12,6 @@ export type IBasket = {
const BasketSchema = new Schema<IBasket>({
basketName: { type: String, required: true },
description: { type: String, required: true },
group: { type: Schema.Types.ObjectId, required: true },
members: { type: [Schema.Types.ObjectId], required: true, default: [] },
items: { type: [Schema.Types.ObjectId], required: true, default: [] },
created: { type: Date, required: true, default: Date.now },
Expand Down
3 changes: 1 addition & 2 deletions backend/models/itemSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export type IItem = {
isPrivate: boolean;
type: string;
basket: Schema.Types.ObjectId;
basketName: string;
notes: string;
price: number;
quantity: number;
Expand All @@ -20,8 +19,8 @@ const itemSchema = new Schema({
name: { type: String, required: true },
toShare: { type: Boolean, required: true },
isPrivate: { type: Boolean, required: true },
type: { type: String, required: true },
basket: { type: Schema.Types.ObjectId, required: true },
basketName: { type: String, required: true },
notes: { type: String, required: true },
price: { type: Number, required: true },
quantity: { type: Number, required: true },
Expand Down

0 comments on commit 061d642

Please sign in to comment.