diff --git a/app/resources/database/migrations/20250701192525_create_toku_accounts.php b/app/resources/database/migrations/20250701192525_create_toku_accounts.php new file mode 100644 index 0000000..3226343 --- /dev/null +++ b/app/resources/database/migrations/20250701192525_create_toku_accounts.php @@ -0,0 +1,32 @@ +table('toku_accounts') + ->addColumn('toku_id', 'integer') + ->addColumn('sociedad_rut', 'integer', ['limit' => 8, 'signed' => false, 'null' => false]) + ->addColumn('account_key', 'string', ['length' => 255]) + ->addColumn('enabled', 'boolean', ['default' => true]) + ->addIndex(['toku_id'], ['unique' => true]) + ->addForeignKey('sociedad_rut', 'inmobiliaria', 'rut', ['delete' => 'CASCADE', 'update' => 'CASCADE']) + ->addTimestamps() + ->create(); + } +}