Deleted useless files such as backend, node_modules and package-lock. Modified readme.

This commit is contained in:
K
2025-02-23 09:04:05 +05:30
parent 699bcb9d2c
commit 3f9e6d3dee
406 changed files with 1 additions and 119215 deletions
-22
View File
@@ -1,22 +0,0 @@
const mongoose = require("mongoose");
const cropSchema = new mongoose.Schema(
{
name: { type: String, required: true },
farm: { type: mongoose.Schema.Types.ObjectId, ref: "Farm", required: true },
image: { type: String },
plantedDate: { type: Date, required: true, default: Date.now() },
harvestDate: { type: Date },
growthStage: {
type: String,
enum: ["Planted", "Growing", "Ready to Harvest"],
default: "Planted",
},
healthStatus: { type: String, default: "Healthy" },
},
{ timestamps: true }
);
const Crop = mongoose.model("Crop", cropSchema);
module.exports = Crop;