diff --git a/database/migrations/2022_06_30_085304_currency.php b/database/migrations/2022_06_30_085304_currency.php new file mode 100644 index 00000000..b2c35aea --- /dev/null +++ b/database/migrations/2022_06_30_085304_currency.php @@ -0,0 +1,38 @@ +id(); + $table->string('name', 64); + $table->string('code', 16); + $table->string('symbol_left', 16); + $table->string('symbol_right', 16); + $table->char('decimal_place', 1); + $table->double('value', 15, 8); + $table->tinyInteger('status'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('currencies'); + } +}