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