2022_10_24_152413_create_contract_logs_table.php 816 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateContractLogsTable.
  6. */
  7. class CreateContractLogsTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('contract_logs', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->integer('contract_id')->index('contract_id')->comment('合约ID');
  19. $table->integer('m_id')->index('m_id')->comment('会员ID');
  20. $table->string('msg')->comment('日志说明');
  21. $table->text('data')->comment('相关数据');
  22. $table->timestamps();
  23. });
  24. }
  25. /**
  26. * Reverse the migrations.
  27. *
  28. * @return void
  29. */
  30. public function down()
  31. {
  32. Schema::drop('contract_logs');
  33. }
  34. }