40 lines
874 B
PHP
40 lines
874 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateMomosTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('momos', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('phone');
|
|
$table->string('token');
|
|
$table->string('password');
|
|
$table->string('min');
|
|
$table->string('max');
|
|
$table->integer('times');
|
|
$table->integer('amount');
|
|
$table->integer('status');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('momos');
|
|
}
|
|
}
|