basic snippets

This commit is contained in:
2019-07-23 16:44:40 -05:00
parent 5ef1306faf
commit ee1c2c2722
7 changed files with 122 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
/*
* Snippet Model
* -------------------------------------------------------------
* Put some description here!
*/
const uuid = require('uuid/v4')
const Snippet = {
title: String,
user_id: String,
archived: { type: Boolean, default: false },
data: String,
shared_user_ids: [String],
edit_user_ids: [String],
uuid: { type: String, default: uuid },
public_share: String,
}
module.exports = exports = Snippet