update libflitter/flap and run migrations
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
* globally using the model() function.
|
||||
*/
|
||||
const Greeting = {
|
||||
name: String,
|
||||
schema: {
|
||||
name: String,
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = Greeting
|
||||
@@ -5,10 +5,11 @@
|
||||
/**
|
||||
* This model stores the role data from Flitter-auth.
|
||||
*
|
||||
* @type {Object}
|
||||
*/
|
||||
module.exports = exports = {
|
||||
name: String,
|
||||
permissions: [String],
|
||||
data: String,
|
||||
}
|
||||
schema: {
|
||||
name: String,
|
||||
permissions: [String],
|
||||
data: String,
|
||||
},
|
||||
}
|
||||
@@ -8,13 +8,14 @@
|
||||
* stored instead of cleartext. The data field is for JSON data that
|
||||
* holds various non-DB essential pieces of information about users.
|
||||
*
|
||||
* @type {Object}
|
||||
*/
|
||||
module.exports = exports = {
|
||||
username: String,
|
||||
password: String,
|
||||
data: String,
|
||||
uuid: String,
|
||||
role: String,
|
||||
permissions: [String],
|
||||
}
|
||||
schema: {
|
||||
username: String,
|
||||
password: String,
|
||||
data: String,
|
||||
uuid: String,
|
||||
role: String,
|
||||
permissions: [String],
|
||||
},
|
||||
}
|
||||
@@ -4,10 +4,12 @@
|
||||
* Put some description here!
|
||||
*/
|
||||
const File = {
|
||||
original_name: String,
|
||||
new_name: String,
|
||||
mime: String,
|
||||
type: String,
|
||||
schema: {
|
||||
original_name: String,
|
||||
new_name: String,
|
||||
mime: String,
|
||||
type: String,
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = exports = File
|
||||
@@ -4,11 +4,16 @@
|
||||
* Put some description here!
|
||||
*/
|
||||
const Invite = {
|
||||
project_id: String,
|
||||
by_user_id: String,
|
||||
api_type: String,
|
||||
created_on: Date,
|
||||
used: { type: Boolean, default: false }
|
||||
schema: {
|
||||
project_id: String,
|
||||
by_user_id: String,
|
||||
api_type: String,
|
||||
created_on: Date,
|
||||
used: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = exports = Invite
|
||||
@@ -4,10 +4,15 @@
|
||||
* Put some description here!
|
||||
*/
|
||||
const Out = {
|
||||
project_id: String,
|
||||
created: { type: Date, default: Date.now },
|
||||
brief: String,
|
||||
data: String,
|
||||
schema: {
|
||||
project_id: String,
|
||||
created: {
|
||||
type: Date,
|
||||
default: Date.now
|
||||
},
|
||||
brief: String,
|
||||
data: String,
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = exports = Out
|
||||
@@ -5,13 +5,21 @@
|
||||
*/
|
||||
const uuid = require('uuid/v4')
|
||||
const Project = {
|
||||
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 }
|
||||
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
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = exports = Project
|
||||
@@ -5,16 +5,24 @@
|
||||
*/
|
||||
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,
|
||||
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,
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = exports = Snippet
|
||||
module.exports = exports = Snippet
|
||||
Reference in New Issue
Block a user