linguabot's picture
Upload models/Link.js with huggingface_hub
3af99c4 verified
raw
history blame contribute delete
366 Bytes
const mongoose = require('mongoose');
const LinkSchema = new mongoose.Schema({
title: { type: String, required: true },
url: { type: String, required: true },
desc: { type: String, default: '' },
category: { type: String, default: '' },
order: { type: Number, default: 0 }
}, { timestamps: true });
module.exports = mongoose.model('Link', LinkSchema);