You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
641 B
23 lines
641 B
// announcement.js
|
|
// Copyright (C) 2022 DTP Technologies, LLC
|
|
// License: Apache-2.0
|
|
|
|
'use strict';
|
|
|
|
const mongoose = require('mongoose');
|
|
|
|
const Schema = mongoose.Schema;
|
|
|
|
const AnnouncementSchema = new Schema({
|
|
created: { type: Date, default: Date.now, required: true, index: -1, expires: '21d' },
|
|
title: {
|
|
icon: {
|
|
class: { type: String, default: 'fa-bullhorn', required: true },
|
|
color: { type: String, default: '#ffffff', required: true },
|
|
},
|
|
content: { type: String, required: true },
|
|
},
|
|
content: { type: String, required: true },
|
|
});
|
|
|
|
module.exports = mongoose.model('Announcement', AnnouncementSchema);
|