Skip to content

Instantly share code, notes, and snippets.

@jpotts18
Created April 3, 2014 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpotts18/9962398 to your computer and use it in GitHub Desktop.
Save jpotts18/9962398 to your computer and use it in GitHub Desktop.
{
"packageName": "io.starterkit.droid.data",
"providerName": "starter",
"databaseVersion": 1,
"tables": [
{ "name": "friend",
"members": [
{ "type": "string", "name": "full_name" },
{ "type": "string", "name": "username" },
{ "type": "string", "name": "avatar_url" },
{ "type": "int", "name": "followers" },
{ "type": "int", "name": "following" }
]
},
{
"name": "user",
"members" : [
{ "type": "string", "name": "first_name" },
{ "type": "string", "name": "last_name" },
{ "type": "string", "name": "email" },
{ "type": "string", "name": "password" },
{ "type": "string", "name": "username" },
{ "type": "string", "name": "avatar_url" },
{ "type": "string", "name": "api_key"}
]
},
{
"name": "message",
"members": [
{ "type": "string", "name": "body" },
{ "type": "int", "name": "likes" },
{ "type": "string", "name": "created_at"}
]
}
],
"relationships" : [
{
"name": "user_message",
"left_table": "user",
"right_table": "message",
"type": "to_many"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment