Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"migration_id": 2016021122553734,
"models": {
"AccessToken": {
"table": "access_tokens",
"columns": [
{"name": "id", "type": "serial", "properties": {"nullable":false,"primary_key":true,"auto_increment":true}},
{"name": "user_id", "type": "int", "properties": {}},
{"name": "access_token", "type": "string", "properties": {}},
{"name": "token_type", "type": "string", "properties": {}},
{"name": "expires_at", "type": "datetime", "properties": {}},
{"name": "ip_address", "type": "string", "properties": {}},
{"name": "created_at", "type": "datetime", "properties": {}},
{"name": "updated_at", "type": "datetime", "properties": {}}
]
},
"User": {
"table": "users",
"columns": [
{"name": "id", "type": "serial", "properties": {"nullable":false,"primary_key":true,"auto_increment":true}},
{"name": "email", "type": "string", "properties": {"unique":true}},
{"name": "password", "type": "string", "properties": {}},
{"name": "username", "type": "string", "properties": {}},
{"name": "created_at", "type": "datetime", "properties": {}},
{"name": "updated_at", "type": "datetime", "properties": {}}
]
},
"Word": {
"table": "words",
"columns": [
{"name": "id", "type": "serial", "properties": {"nullable":false,"primary_key":true,"auto_increment":true}},
{"name": "nane", "type": "string", "properties": {"nullable":false}},
{"name": "meaning", "type": "string", "properties": {"nullable":false}},
{"name": "created_at", "type": "datetime", "properties": {}},
{"name": "updated_at", "type": "datetime", "properties": {}}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment