原图保护功能

This commit is contained in:
Wisp X
2022-01-17 09:59:55 +08:00
parent 90eb5c71e9
commit c9bca05daa
6 changed files with 56 additions and 5 deletions
@@ -22,6 +22,7 @@ class CreateImagesTable extends Migration
$table->foreignId('user_id')->nullable()->comment('用户')->constrained('users')->onDelete('set null');
$table->foreignId('album_id')->nullable()->comment('相册')->constrained('albums')->onDelete('set null');
$table->foreignId('strategy_id')->nullable()->comment('策略')->constrained('strategies')->onDelete('set null');
$table->string('key')->unique()->comment('key');
$table->string('path')->comment('保存路径');
$table->string('name')->comment('保存名称');
$table->string('origin_name')->default('')->comment('原始名称');