<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up()
    {
        Schema::create('one_time_passwords', function (Blueprint $table) {
            $table->id();

            $table->string('password');
            $table->json('origin_properties')->nullable();

            $table->dateTime('expires_at');
            $table->morphs('authenticatable');

            $table->timestamps();
        });
    }
};
