feat: Initial commit of backend services and AGENTS.md

This commit is contained in:
William Valentin
2025-10-29 13:12:30 -07:00
commit 999d37babb
25 changed files with 3881 additions and 0 deletions

29
backend/models/Task.js Normal file
View File

@@ -0,0 +1,29 @@
const mongoose = require("mongoose");
const TaskSchema = new mongoose.Schema(
{
street: {
type: mongoose.Schema.Types.ObjectId,
ref: "Street",
required: true,
},
description: {
type: String,
required: true,
},
completedBy: {
type: mongoose.Schema.Types.ObjectId,
ref: "User",
},
status: {
type: String,
enum: ["pending", "completed"],
default: "pending",
},
},
{
timestamps: true,
},
);
module.exports = mongoose.model("Task", TaskSchema);