news.js 388 B

12345678
  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. createdBy: { type: String, required: true },
  6. createdAt: { type: Number, default: Date.now, required: true },
  7. documentVersion: { type: Number, default: 2, required: true }
  8. };