This commit is contained in:
NotII
2025-03-10 17:39:37 +00:00
parent c08df8919d
commit 20d5559832
69 changed files with 7676 additions and 78 deletions

View File

@@ -0,0 +1,13 @@
import mongoose from "mongoose";
const VendorSchema = new mongoose.Schema({
username: { type: String, required: true, unique: true },
passwordHash: { type: String, required: true },
currentToken: { type: String, default: null },
storeId: { type: mongoose.Schema.Types.ObjectId, ref: "Store", default: null },
pgpKey: { type: String, default: ""},
lastOnline: { type: Date, default: Date.now },
createdAt: { type: Date, default: Date.now },
});
export default mongoose.model("Vendor", VendorSchema);