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.
42 lines
910 B
PHP
42 lines
910 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateAppointmentsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('appointments', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->date('date')->index();
|
|
$table->tinyInteger('week');
|
|
$table->time('start_time');
|
|
$table->time('end_time');
|
|
$table->time('stop_time');
|
|
$table->bigInteger('max_count');
|
|
$table->bigInteger('used_count');
|
|
$table->bigInteger('hospital');
|
|
$table->tinyInteger('status');
|
|
$table->tinyInteger('del')->default(2);
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('appointments');
|
|
}
|
|
}
|