mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
ln auth added
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user