schema-tag-seo.js 503 B

123456789101112
  1. var Schema = require('mongoose').Schema;
  2. let tagSeo = new Schema({
  3. tag: { type: String, unique: true, desc: 'tag' },
  4. // 网站seo title,60个字符以内
  5. seoTitle: { type: String, desc: '小标题', searchable: true }, // json字符串,形如: {zh: '中国', en: 'China'}
  6. // 网站seo meta description, 160个字符以内
  7. seoDescription: { type: String, desc: '文案描述', searchable: true }, // json字符串,形如: {zh: '中国', en: 'China'}
  8. });
  9. module.exports = tagSeo;