clmm-v2/database/migrations/2022_05_01_134738_create_momos_table.php
Nguyễn Tiến Dũng 3d31201a05 11/5/2022
2022-05-11 21:09:39 +07:00

40 lines
875 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->longText('info');
$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');
}
}