mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 12:02:48 +00:00
Update Notification schema
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
const mongoose = require('mongoose');
|
||||
const { nanoid } = require('nanoid');
|
||||
const _ = require('lodash');
|
||||
|
||||
const NotificationSchema = mongoose.Schema({
|
||||
dissmissKey : { type: String, default: ()=>{return nanoid(12);}, index: { unique: true } },
|
||||
dissmissKey : { type: String, index: { unique: true } },
|
||||
title : { type: String, default: '' },
|
||||
text : { type: String, default: '' },
|
||||
|
||||
|
||||
Reference in New Issue
Block a user