Sean was right
This commit is contained in:
parent
64d66f0306
commit
330d1ba49c
@ -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']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user