news.js 456 B

123456789
  1. export default {
  2. title: { type: String, required: true },
  3. markdown: { type: String, required: true },
  4. status: { type: String, enum: ["draft", "published", "archived"], required: true, default: "published" },
  5. showToNewUsers: { type: Boolean, required: true, default: false },
  6. createdBy: { type: String, required: true },
  7. createdAt: { type: Number, default: Date.now, required: true },
  8. documentVersion: { type: Number, default: 3, required: true }
  9. };