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..411efe2 --- /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]) + ->addColumn('account_key', 'string', ['length' => 255]) + ->addIndex(['toku_id'], ['unique' => true]) + ->addIndex(['account_id'], ['unique' => true]) + ->addForeignKey('sociedad_rut', 'sociedades', 'rut', ['delete' => 'CASCADE', 'update' => 'CASCADE']) + ->addTimestamps() + ->create(); + } +}