You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

6 months ago
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('teachers', function (Blueprint $table) {
$table->comment('老师管理');
$table->increments('id');
$table->integer('admin_id')->nullable();
$table->integer('department_id')->nullable();
$table->string('name')->nullable()->comment('名字');
$table->string('mobile')->nullable()->comment('手机号');
$table->string('sex')->nullable()->comment('性别');
$table->string('introduce')->nullable()->comment('介绍');
$table->dateTime('created_at')->nullable();
$table->dateTime('updated_at')->nullable();
$table->dateTime('deleted_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('teachers');
}
};