first commit

This commit is contained in:
2025-09-12 15:23:08 +08:00
commit a80c237bbb
117 changed files with 15628 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Common\Macros;
use Hyperf\Database\Schema\Blueprint;
class BlueprintMacros
{
public static function register(): void
{
Blueprint::macro('authorFields', function () {
/** @var Blueprint $this */
$this->unsignedBigInteger('created_by')->nullable()->comment('创建人ID');
$this->unsignedBigInteger('updated_by')->nullable()->comment('更新人ID');
return $this;
});
}
}