ufutx.dma/database/migrations/2023_02_03_112743_create_partners_table.php
2026-03-04 14:42:40 +08:00

41 lines
1.1 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.
*
* @return void
*/
public function up()
{
Schema::create('partners', function (Blueprint $table) {
$table->id();
$table->string('openid', 50)->unique();
$table->string('name')->nullable();
$table->string('mobile', 15)->nullable();
$table->string('pic')->nullable();
$table->text("intro")->nullable();
$table->text('specialty')->nullable()->comment("特长");
$table->string('attach')->nullable()->comment("附件");
$table->text("protocols")->nullable()->comment("协议");
$table->string('agency_date', 10)->nullable()->comment("成为代理日期");
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('partners');
}
};