Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hanspagel/fb23761430646880dcec67d48b82b851 to your computer and use it in GitHub Desktop.
Save hanspagel/fb23761430646880dcec67d48b82b851 to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateOauthAuthCodesTable extends Migration
{
public function up()
{
Schema::create('oauth_auth_codes', function (Blueprint $table) {
$table->string('id', 100)->primary();
$table->uuid('user_id');
$table->integer('client_id');
$table->text('scopes')->nullable();
$table->boolean('revoked');
$table->dateTime('expires_at')->nullable();
});
}
public function down()
{
Schema::drop('oauth_auth_codes');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment