You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
484 B
21 lines
484 B
/*
|
|
* Snippet Model
|
|
* -------------------------------------------------------------
|
|
* Put some description here!
|
|
*/
|
|
const uuid = require('uuid/v4')
|
|
const Snippet = {
|
|
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,
|
|
}
|
|
|
|
module.exports = exports = Snippet
|