2022_10_20_144802_create_invests_table.php 676 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateInvestsTable.
  6. */
  7. class CreateInvestsTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('invests', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->string('title')->default('')->comment('投资名称');
  19. $table->double('invest_money',16,6)->default(0)->comment('投入金额');
  20. $table->timestamps();
  21. });
  22. }
  23. /**
  24. * Reverse the migrations.
  25. *
  26. * @return void
  27. */
  28. public function down()
  29. {
  30. Schema::drop('invests');
  31. }
  32. }