协程版仓库后端项目
Some checks failed
Build Docker / build (push) Has been cancelled

This commit is contained in:
2025-07-08 14:59:47 +08:00
commit 0b2299c427
134 changed files with 19277 additions and 0 deletions

View File

@ -0,0 +1,37 @@
<?php
use App\Service\MigrateService;
use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('company', function (Blueprint $table) {
$table->bigIncrements('id');
$table->tinyInteger('company_type')->default(1)->comment('公司类型 1开证公司 2收货公司');
$table->string('name', 128)->default('')->comment('公司全称');
$table->tinyInteger('status')->default(1)->comment('状态: 0禁用 1正常');
$table->unique(['name', 'company_type'], 'name');
MigrateService::migrateCreateInfo($table);
$table->comment('公司表');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('company');
}
};