Scraping actor profiles from FreeOnes.

This commit is contained in:
2019-11-17 03:56:45 +01:00
parent abcdb52335
commit e8130c3634
268 changed files with 19161 additions and 102 deletions

View File

@@ -1,4 +1,14 @@
exports.up = knex => Promise.resolve()
.then(() => knex.schema.createTable('countries', (table) => {
table.string('alpha2', 2)
.unique()
.primary();
table.string('name')
.notNullable();
table.integer('code', 3);
}))
.then(() => knex.schema.createTable('actors', (table) => {
table.increments('id', 12);
@@ -6,16 +16,34 @@ exports.up = knex => Promise.resolve()
.unique()
.notNullable();
table.string('gender', 18);
table.text('description');
table.date('birthdate');
table.string('gender', 18);
table.string('birth_country_alpha2', 2)
.references('alpha2')
.inTable('countries');
table.string('birth_place');
table.string('residence_country_alpha2', 2)
.references('alpha2')
.inTable('countries');
table.string('residence_place');
table.string('ethnicity');
table.string('country_alpha2', 2);
table.string('city');
table.integer('height');
table.string('eyes');
table.string('boobs_size');
table.boolean('boobs_natural');
table.string('piercings');
table.string('tattoos');
table.string('hair');
table.text('description');
table.boolean('active');
table.integer('alias_for', 12)
.references('id')
.inTable('actors');
@@ -242,4 +270,5 @@ exports.down = knex => Promise.resolve()
.then(() => knex.schema.dropTable('sites'))
.then(() => knex.schema.dropTable('studios'))
.then(() => knex.schema.dropTable('directors'))
.then(() => knex.schema.dropTable('networks'));
.then(() => knex.schema.dropTable('networks'))
.then(() => knex.schema.dropTable('countries'));