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.
15 lines
451 B
15 lines
451 B
// chat-filter.js
|
|
// Copyright (C) 2022,2023 DTP Technologies, LLC
|
|
// All Rights Reserved
|
|
|
|
'use strict';
|
|
|
|
import mongoose from 'mongoose';
|
|
const Schema = mongoose.Schema;
|
|
|
|
const ChatFilterSchema = new Schema({
|
|
created: { type: Date, required: true, default: Date.now, index: 1, expires: '300d' },
|
|
filter: { type: String, required: true, unique: true, lowercase: true, index: 1 },
|
|
});
|
|
|
|
export default mongoose.model('ChatFilter', ChatFilterSchema);
|