Initial commit

This commit is contained in:
kihong.kim
2026-01-24 19:41:19 +09:00
commit 807df3d678
90 changed files with 6411 additions and 0 deletions

12
backend/models/Photo.js Normal file
View File

@@ -0,0 +1,12 @@
const mongoose = require("mongoose");
const photoSchema = new mongoose.Schema(
{
url: { type: String, required: true },
caption: { type: String },
active: { type: Boolean, default: true },
},
{ timestamps: true }
);
module.exports = mongoose.model("Photo", photoSchema);