hmm
This commit is contained in:
@@ -12,38 +12,19 @@ use Visus\Cuid2\Cuid2;
|
|||||||
class User extends Authenticatable
|
class User extends Authenticatable
|
||||||
{
|
{
|
||||||
use HasApiTokens, HasFactory, Notifiable;
|
use HasApiTokens, HasFactory, Notifiable;
|
||||||
|
|
||||||
/**
|
|
||||||
* The attributes that are mass assignable.
|
|
||||||
*
|
|
||||||
* @var array<int, string>
|
|
||||||
*/
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'id',
|
'id',
|
||||||
'name',
|
'name',
|
||||||
'email',
|
'email',
|
||||||
'password',
|
'password',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
|
||||||
* The attributes that should be hidden for serialization.
|
|
||||||
*
|
|
||||||
* @var array<int, string>
|
|
||||||
*/
|
|
||||||
protected $hidden = [
|
protected $hidden = [
|
||||||
'password',
|
'password',
|
||||||
'remember_token',
|
'remember_token',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
|
||||||
* The attributes that should be cast.
|
|
||||||
*
|
|
||||||
* @var array<string, string>
|
|
||||||
*/
|
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
'email_verified_at' => 'datetime',
|
'email_verified_at' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected static function boot()
|
protected static function boot()
|
||||||
{
|
{
|
||||||
parent::boot();
|
parent::boot();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('users', function (Blueprint $table) {
|
Schema::create('users', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->boolean('is_root_user')->default(false);
|
$table->boolean('is_root_user')->default(false);
|
||||||
$table->string('name')->default('Your Name Here');
|
$table->string('name')->default('Your Name Here');
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('personal_access_tokens', function (Blueprint $table) {
|
Schema::create('personal_access_tokens', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->morphs('tokenable');
|
$table->morphs('tokenable');
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->string('token', 64)->unique();
|
$table->string('token', 64)->unique();
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ class CreateActivityLogTable extends Migration
|
|||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::connection(config('activitylog.database_connection'))->create(config('activitylog.table_name'), function (Blueprint $table) {
|
Schema::connection(config('activitylog.database_connection'))->create(config('activitylog.table_name'), function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('log_name')->nullable();
|
$table->string('log_name')->nullable();
|
||||||
$table->text('description');
|
$table->text('description');
|
||||||
$table->nullableMorphs('subject', 'subject');
|
$table->nullableMorphs('subject', 'subject');
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('teams', function (Blueprint $table) {
|
Schema::create('teams', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->boolean('personal_team')->default(false);
|
$table->boolean('personal_team')->default(false);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('team_user', function (Blueprint $table) {
|
Schema::create('team_user', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->foreignId('team_id');
|
$table->foreignId('team_id');
|
||||||
$table->foreignId('user_id');
|
$table->foreignId('user_id');
|
||||||
$table->string('role')->nullable();
|
$table->string('role')->nullable();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('instance_settings', function (Blueprint $table) {
|
Schema::create('instance_settings', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('fqdn')->nullable();
|
$table->string('fqdn')->nullable();
|
||||||
$table->string('wildcard_domain')->nullable();
|
$table->string('wildcard_domain')->nullable();
|
||||||
$table->string('redirect_url')->nullable();
|
$table->string('redirect_url')->nullable();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('servers', function (Blueprint $table) {
|
Schema::create('servers', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->string('description')->nullable();
|
$table->string('description')->nullable();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('server_settings', function (Blueprint $table) {
|
Schema::create('server_settings', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
|
|
||||||
$table->boolean('is_part_of_swarm')->default(false);
|
$table->boolean('is_part_of_swarm')->default(false);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('private_keys', function (Blueprint $table) {
|
Schema::create('private_keys', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->string('description')->nullable();
|
$table->string('description')->nullable();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('projects', function (Blueprint $table) {
|
Schema::create('projects', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->string('description')->nullable();
|
$table->string('description')->nullable();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('project_settings', function (Blueprint $table) {
|
Schema::create('project_settings', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->string('wildcard_domain')->nullable();
|
$table->string('wildcard_domain')->nullable();
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('environments', function (Blueprint $table) {
|
Schema::create('environments', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->foreignId('project_id');
|
$table->foreignId('project_id');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('applications', function (Blueprint $table) {
|
Schema::create('applications', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->integer('repository_project_id')->nullable();
|
$table->integer('repository_project_id')->nullable();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('application_settings', function (Blueprint $table) {
|
Schema::create('application_settings', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->boolean('is_static')->default(false);
|
$table->boolean('is_static')->default(false);
|
||||||
$table->boolean('is_git_submodules_allowed')->default(true);
|
$table->boolean('is_git_submodules_allowed')->default(true);
|
||||||
$table->boolean('is_git_lfs_allowed')->default(true);
|
$table->boolean('is_git_lfs_allowed')->default(true);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('databases', function (Blueprint $table) {
|
Schema::create('databases', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('services', function (Blueprint $table) {
|
Schema::create('services', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('standalone_dockers', function (Blueprint $table) {
|
Schema::create('standalone_dockers', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->string('network');
|
$table->string('network');
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('swarm_dockers', function (Blueprint $table) {
|
Schema::create('swarm_dockers', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('kubernetes', function (Blueprint $table) {
|
Schema::create('kubernetes', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
|
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('gits', function (Blueprint $table) {
|
Schema::create('gits', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->enum('type', ['github', 'gitlab', 'bitbucket', 'custom']);
|
$table->enum('type', ['github', 'gitlab', 'bitbucket', 'custom']);
|
||||||
|
|
||||||
$table->string('api_url');
|
$table->string('api_url');
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('github_apps', function (Blueprint $table) {
|
Schema::create('github_apps', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('gitlab_apps', function (Blueprint $table) {
|
Schema::create('gitlab_apps', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('local_persistent_volumes', function (Blueprint $table) {
|
Schema::create('local_persistent_volumes', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->string('mount_path');
|
$table->string('mount_path');
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('environment_variables', function (Blueprint $table) {
|
Schema::create('environment_variables', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
|
|
||||||
$table->string('key');
|
$table->string('key');
|
||||||
$table->string('value')->nullable();
|
$table->string('value')->nullable();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('failed_jobs', function (Blueprint $table) {
|
Schema::create('failed_jobs', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->text('connection');
|
$table->text('connection');
|
||||||
$table->text('queue');
|
$table->text('queue');
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('application_deployment_queues', function (Blueprint $table) {
|
Schema::create('application_deployment_queues', function (Blueprint $table) {
|
||||||
$table->id()->primary();
|
$table->id();
|
||||||
$table->string('application_id');
|
$table->string('application_id');
|
||||||
$table->integer('pull_request_id')->default(0);
|
$table->integer('pull_request_id')->default(0);
|
||||||
$table->schemalessAttributes('metadata');
|
$table->schemalessAttributes('metadata');
|
||||||
|
|||||||
Reference in New Issue
Block a user