You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.0 KiB
42 lines
1.0 KiB
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateSms extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('sms', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string("belongs_type")->nullable();
|
|
$table->integer("belongs_id")->nullable();
|
|
$table->string("mobile")->nullable();
|
|
$table->string("vars")->nullable();
|
|
$table->string("template_id")->nullable();
|
|
$table->string("ip")->nullable();
|
|
$table->string("status")->nullable();
|
|
$table->string("result_code")->nullable();
|
|
$table->string("result_msg")->nullable();
|
|
$table->timestamps();
|
|
$table->softDeletes();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('sms');
|
|
}
|
|
}
|