Skip to content

Instantly share code, notes, and snippets.

@phamquyhai
Last active April 27, 2017 05:34
Show Gist options
  • Save phamquyhai/1b44a22a42e88e829fafecc56fdf6691 to your computer and use it in GitHub Desktop.
Save phamquyhai/1b44a22a42e88e829fafecc56fdf6691 to your computer and use it in GitHub Desktop.
FDeploy Database
{
filename : "${project.name}-${version.detail.versionName}-${version.createdAt}.apk",
filelocation : "${project._id}/${version._id}.apk"
icon : "${project._id}/icon.png"
}
SystemRole = {
_id : "",
name : "",
canUpdateSystem : false,
canUserManager : true,
canProjectManager : true,
canCreateUser: false,
canCreateProject : true,
}
User = {
_id : "abc",
name : "name",
email: "abc@email.com",
sysRole : SystemRole._id,
providers: [
{ name: "google", id: "#DFDF#$#$", token: "sd86g7f6g7fg" },
{ name: "facebook", id: "#DFDF#$#$", token: "sd86g7f6g7fg" },
{ name: "github", id: "#DFDF#$#$", token: "sd86g7f6g7fg" },
],
apiKey : "34%$%%$%$", // Cần để call được API
settings: {
notificationEmail: true,
},
lastLoginAt: "2016-05-18T16:00:00Z",
createdAt : "2016-05-18T16:00:00Z",
updatedAt : "2016-05-18T16:00:00Z",
}
Role = {
_id : "",
name : "",
canUpload : true,
canEdit : false,
}
Project = {
_id : "abc",
owner : User._id,
name : "Abc",
type : "android", // or ios
icon: "",
description: "ababa",
settings : {
notification : true,
chatwork: {
roomId : "",
content : "",
}
},
members : [
{ id : User._id, role : Role._id }
]
}
Version = {
_id : "ghghg",
project : Project._id,
flag : "production" // production, beta, alpha, debug
description: "asdsdsd",
detail: {
bundle : "com.abc.pro",
versionCode : 1,
versionName : "v1.0",
osVersion: { min: 14, target: 20 },
fileSize : 3234454545,
fileName: "acb.apk",
fileLocation : ".apk",
},
createdByUser : User._id,
createdAt : "2016-05-18T16:00:00Z",
}
Comment = {
_id : "ghghg",
user : User._id,
version : Version._id,
content : "abc abc abc abc abc abc"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment