You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.3 KiB
PHTML
43 lines
1.3 KiB
PHTML
2 years ago
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
class CreateSmsTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('sms', function (Blueprint $table) {
|
||
|
$table->unsignedInteger('id', true)->comment('전송번호');
|
||
|
$table->string('title', 255)->comment('제목');
|
||
|
$table->text('content', 65535)->comment('내용');
|
||
|
$table->string('callback', 20)->comment('회신번호');
|
||
|
$table->integer('total')->default(0)->comment('전송건수');
|
||
|
$table->integer('success')->default(0)->comment('성공건수');
|
||
|
$table->integer('failure')->default(0)->comment('실패건수');
|
||
|
$table->datetime('created_at')->nullable()->comment('등록일시');
|
||
|
$table->datetime('updated_at')->nullable()->comment('수정일시');
|
||
|
$table->dateTime('deleted_at')->nullable()->comment('삭제일시');
|
||
|
|
||
|
// 인덱스
|
||
|
$table->index('created_at', 'ik_tbl_sms_created_at');
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::drop('sms');
|
||
|
}
|
||
|
}
|