39 lines
619 B
PHP
39 lines
619 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateAdminTable extends Migration {
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('Admin', function(Blueprint $table)
|
|
{
|
|
$table->string('ID')->primary();
|
|
$table->string('password');
|
|
$table->string('name');
|
|
$table->string('nick_name');
|
|
$table->string('email');
|
|
$table->string('phone_number');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('Admin');
|
|
}
|
|
|
|
}
|