feat: pref for image quality

This commit is contained in:
Julien Froidefond
2025-02-17 08:31:44 +01:00
parent 4ae606ea09
commit 5c1138f287
12 changed files with 391 additions and 22 deletions

View File

@@ -0,0 +1,21 @@
import mongoose from "mongoose";
const preferencesSchema = new mongoose.Schema(
{
userId: {
type: String,
required: true,
unique: true,
},
showThumbnails: {
type: Boolean,
default: false,
},
},
{
timestamps: true,
}
);
export const PreferencesModel =
mongoose.models.Preferences || mongoose.model("Preferences", preferencesSchema);