2022_10_24_101213_create_member_grades_table.php 708 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateMemberGradesTable.
  6. */
  7. class CreateMemberGradesTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('member_grades', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->string('grade_name')->default('')->comment('等级名称');
  19. $table->double('grade_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('member_grades');
  31. }
  32. }