Add unique to lodestoneId

This commit is contained in:
Daniel_I_Am 2020-08-29 12:19:17 +02:00
parent d789b64733
commit c18b9a9c27
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84

View File

@ -15,7 +15,7 @@ class CreateLinkCodesTable extends Migration
{
Schema::create('link_codes', function (Blueprint $table) {
$table->id();
$table->bigInteger('lodestoneId');
$table->bigInteger('lodestoneId')->unique();
$table->bigInteger('discordUserId')->nullable();
$table->bigInteger('websiteUserId')->nullable();
$table->dateTime('expires');