write game abilities to db

This commit is contained in:
ntr
2018-10-20 17:06:44 +11:00
parent 69e1a3fcea
commit 69fe6e8f55
7 changed files with 83 additions and 30 deletions
+5 -4
View File
@@ -1,12 +1,13 @@
exports.up = async knex => {
knex.schema.createTable('games', table => {
await knex.schema.createTable('games', table => {
table.uuid('id').primary();
table.timestamps();
table.binary('data').notNullable();
table.index('id');
table.timestamps();
table.binary('data').notNullable();
});
knex.schema.createTable('players', table => {
await knex.schema.createTable('players', table => {
table.uuid('id').primary();
table.index('id');