0
0
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:
G.Ambatte
2023-01-05 09:03:51 +13:00
parent a499bb3a54
commit 42125f4041

View File

@@ -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: '' },