ln auth added

This commit is contained in:
Benjamin Takats
2022-12-01 19:44:29 +01:00
parent 9aae2f1a3f
commit 645599b7c6
27 changed files with 882 additions and 6 deletions

View File

@@ -14,11 +14,16 @@ return new class extends Migration {
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('public_key')
->unique()
->nullable();
$table->string('email')
->unique();
->unique()
->nullable();
$table->timestamp('email_verified_at')
->nullable();
$table->string('password');
$table->string('password')
->nullable();
$table->rememberToken();
$table->foreignId('current_team_id')
->nullable();

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
* @return void
*/
public function up()
{
Schema::create('login_keys', function (Blueprint $table) {
$table->id();
$table->string('k1');
$table->foreignId('user_id')
->index();
$table->timestamps();
});
}
/**
* Reverse the migrations.
* @return void
*/
public function down()
{
Schema::dropIfExists('login_keys');
}
};