2021_10_16_092459_create_agency_sets_table.php 671 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateAgencySetsTable.
  6. */
  7. class CreateAgencySetsTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('agency_sets', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->integer('agency_num')->comment('代理人数限制');
  19. $table->text('content')->comment('代理内容说明');
  20. $table->timestamps();
  21. });
  22. }
  23. /**
  24. * Reverse the migrations.
  25. *
  26. * @return void
  27. */
  28. public function down()
  29. {
  30. Schema::drop('agency_sets');
  31. }
  32. }