2019-07-23 21:44:40 +00:00
|
|
|
/*
|
|
|
|
* Snippet Model
|
|
|
|
* -------------------------------------------------------------
|
|
|
|
* Put some description here!
|
|
|
|
*/
|
|
|
|
const uuid = require('uuid/v4')
|
|
|
|
const Snippet = {
|
2019-08-15 14:59:33 +00:00
|
|
|
schema: {
|
|
|
|
name: 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,
|
|
|
|
mode: String,
|
|
|
|
project_id: String,
|
|
|
|
},
|
2019-07-23 21:44:40 +00:00
|
|
|
}
|
|
|
|
|
2019-08-15 14:59:33 +00:00
|
|
|
module.exports = exports = Snippet
|