Added Teen Core Club. Changed network to entity in GraphQL query.

This commit is contained in:
2020-06-08 03:41:12 +02:00
parent 09d849eb9d
commit 79465d9634
143 changed files with 362 additions and 37 deletions

View File

@@ -148,6 +148,7 @@ exports.up = knex => Promise.resolve()
{ type: 'network' },
{ type: 'channel' },
{ type: 'studio' },
{ type: 'info' },
]))
.then(() => knex.schema.createTable('entities', (table) => {
table.increments('id', 12);
@@ -156,14 +157,16 @@ exports.up = knex => Promise.resolve()
.references('id')
.inTable('entities');
table.text('name');
table.text('slug', 32);
table.integer('type', 4)
.references('id')
.inTable('entities_types')
.defaultTo(2);
table.text('name');
table.text('slug', 32)
.unique();
table.unique(['slug', 'type']);
table.text('alias');
table.text('url');