添加字段

This commit is contained in:
iVampireSP.com 2023-02-02 20:16:06 +08:00
parent 665eecf023
commit b103871437
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -23,6 +23,7 @@ public function up(): void
$table->timestamp('paid_at')->nullable();
$table->unsignedBigInteger('user_id')->nullable()->index();
$table->foreign(['user_id'])->references(['id'])->on('users')->onUpdate('NO ACTION')->onDelete('NO ACTION');
$table->timestamps();
});
}