Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
talha_silentcontent
/
src
/
models
/
Filename :
keywordModel.js
back
Copy
import mongoose from "mongoose"; import User from "./userModel.js"; import Batch from "./batchModel.js"; import Prompt from "./promptModel.js"; const keywordSchema = new mongoose.Schema({ keyword: { type: String, required: [true, "Please provide a keyword"], }, wordCount: { type: String, }, secondaryKeywords: { type: String, }, response: { type: String, }, scraping: { type: Boolean, }, status: { type: String, enum: ["not started", "completed", "in progress", "failed"], default: "not started" }, user: { type: mongoose.Schema.Types.ObjectId, ref: User, }, organizationBatch: { type: mongoose.Schema.Types.ObjectId, ref: 'OrganizationBatch', default: null }, batch: String, GPT: String, API: String, selectPrompt: { type: mongoose.Schema.Types.ObjectId, ref: Prompt, }, customOutlinePrompt: String, customSectionPrompt: String, image: String, }) const Keyword = mongoose.models.keywords || mongoose.model("keywords", keywordSchema); export default Keyword;