1/5/2022
This commit is contained in:
39
database/migrations/2022_05_01_134738_create_momos_table.php
Normal file
39
database/migrations/2022_05_01_134738_create_momos_table.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user