WIP Metadata class.

This commit is contained in:
Ahmed Bouhuolia
2019-09-08 02:41:46 +02:00
parent 70809cb05c
commit 9a8de9ca7d
29 changed files with 1707 additions and 98 deletions

View File

@@ -0,0 +1,9 @@
exports.up = (knex) => knex.schema.createTable('password_resets', (table) => {
table.increments();
table.string('user_id');
table.string('token');
table.timestamp('created_at');
});
exports.down = (knex) => knex.schema.dropTableIfExists('password_resets');

View File

@@ -1,6 +1,6 @@
exports.up = function(knex) {
return knex.schema.createTable('oauth_clients', table => {
return knex.schema.createTable('oauth_clients', (table) => {
table.increments();
table.integer('client_id').unsigned();
table.string('client_secret');

View File

@@ -1,8 +1,10 @@
exports.up = function(knex) {
return knex.schema.createTable('settings', table => {
exports.up = function (knex) {
return knex.schema.createTable('settings', (table) => {
table.increments();
table.integer('user_id').unsigned().references('id').inTable('users');
table.string('group');
table.string('type');
table.string('key');
table.string('value');
});

View File

@@ -3,7 +3,7 @@ exports.up = function (knex) {
return knex.schema.createTable('accounts', (table) => {
table.increments();
table.string('name');
table.string('type');
table.integer('account_type_id');
table.integer('parent_account_id');
table.string('code', 10);
table.text('description');

View File

@@ -0,0 +1,9 @@
exports.up = function (knex) {
return knex.schema.createTable('account_types', (table) => {
table.increments();
table.string('name');
});
};
exports.down = (knex) => knex.schema.dropTableIfExists('account_types');