Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/database/migrations/2016_01_23_195851_add_api_keys.php
7460 views
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class AddApiKeys extends Migration
8
{
9
/**
10
* Run the migrations.
11
*/
12
public function up(): void
13
{
14
Schema::create('api_keys', function (Blueprint $table) {
15
$table->increments('id');
16
$table->char('public', 16);
17
$table->text('secret');
18
$table->text('allowed_ips')->nullable();
19
$table->timestamps();
20
});
21
}
22
23
/**
24
* Reverse the migrations.
25
*/
26
public function down(): void
27
{
28
Schema::dropIfExists('api_keys');
29
}
30
}
31
32