generated from liutk/owl-admin-base
51 lines
1.9 KiB
PHP
51 lines
1.9 KiB
PHP
<?php
|
||
|
||
use Illuminate\Database\Migrations\Migration;
|
||
use Illuminate\Database\Schema\Blueprint;
|
||
use Illuminate\Support\Facades\Schema;
|
||
|
||
return new class extends Migration
|
||
{
|
||
/**
|
||
* Run the migrations.
|
||
*/
|
||
public function up(): void
|
||
{
|
||
Schema::create('manages', function (Blueprint $table) {
|
||
$table->id();
|
||
$table->string('name')->comment('姓名');
|
||
|
||
$table->string('avatar')->nullable()->comment('头像');
|
||
$table->unsignedTinyInteger('gender')->nullable()->comment('性别:0未知,1男,2女');
|
||
$table->date('birthday')->nullable()->comment('生日');
|
||
$table->string('nation')->nullable()->comment('民族');
|
||
$table->string('political_face')->nullable()->comment('政治面貌');
|
||
$table->string('educational_level')->nullable()->comment('学历学位');
|
||
$table->string('company')->nullable()->comment('工作单位');
|
||
$table->string('strative_position')->nullable()->comment('行政职务');
|
||
$table->string('technical_position')->nullable()->comment('专业技术职务');
|
||
$table->string('subject')->nullable()->comment('学科门类');
|
||
$table->string('research_direction')->nullable()->comment('研究方向');
|
||
|
||
$table->string('address')->nullable()->comment('通讯地址(邮编)');
|
||
$table->string('email')->nullable()->comment('个人邮箱');
|
||
|
||
$table->string('work_phone')->nullable()->comment('办公电话');
|
||
$table->string('mobile_phone')->nullable()->comment('移动电话');
|
||
|
||
$table->string('remarks')->nullable()->comment('备注');
|
||
$table->text('others')->nullable()->comment('补充说明');
|
||
|
||
$table->timestamps();
|
||
});
|
||
}
|
||
|
||
/**
|
||
* Reverse the migrations.
|
||
*/
|
||
public function down(): void
|
||
{
|
||
Schema::dropIfExists('manages');
|
||
}
|
||
};
|