2018_10_08_094445_create_smss_table.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateSmssTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('smss', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->string('name')->comment('名称');
  17. $table->string('alias')->unique()->comment('别名');
  18. $table->string('app_key')->comment('短信接口帐号');
  19. $table->string('secret_key')->comment('短信接口密钥');
  20. $table->string('signature_key')->comment('短信接口签名');
  21. $table->tinyInteger('status')->default('1')->comment('是否启用(1:启用 0:禁止)');
  22. $table->string('remark')->comment('描述');
  23. $table->tinyInteger('order')->default('0')->index()->comment('排序');
  24. $table->timestamps();
  25. $table->softDeletes();
  26. });
  27. }
  28. /**
  29. * Reverse the migrations.
  30. *
  31. * @return void
  32. */
  33. public function down()
  34. {
  35. Schema::dropIfExists('smss');
  36. }
  37. }