Sean was right

This commit is contained in:
Daniel_I_Am 2020-08-29 01:23:03 +02:00
parent 64d66f0306
commit 330d1ba49c
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84

View File

@ -16,10 +16,12 @@ class CreateUserLinksTable extends Migration
Schema::create('user_links', function (Blueprint $table) {
$table->id();
$table->foreignId('freeCompanyLinkId')->constrained('free_company_links');
$table->bigInteger('lodestoneId')->nullable();
$table->bigInteger('discordUserId')->nullable();
$table->bigInteger('lodestoneId')->unique();
$table->bigInteger('discordUserId')->nullable()->unique();
$table->bigInteger('websiteUserId')->nullable();
$table->timestamps();
$table->unique(['freeCompanyLinkId', 'websiteUserId']);
});
}