mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 12:17:07 +00:00
Update Notification schema
This commit is contained in:
1 parent
a499bb3a54
commit
42125f4041
1 file changed
+1
-2
@@ -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