more snippet sharing

This commit is contained in:
glmdev
2019-07-24 09:52:58 -05:00
parent ee1c2c2722
commit 5bff5407a5
6 changed files with 198 additions and 61 deletions

View File

@@ -5,7 +5,7 @@
*/
const uuid = require('uuid/v4')
const Snippet = {
title: String,
name: String,
user_id: String,
archived: { type: Boolean, default: false },
data: String,
@@ -13,6 +13,8 @@ const Snippet = {
edit_user_ids: [String],
uuid: { type: String, default: uuid },
public_share: String,
mode: String,
project_id: String,
}
module.exports = exports = Snippet
module.exports = exports = Snippet