-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add missing files, and publish stubs
- Loading branch information
Showing
52 changed files
with
1,316 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
return [ | ||
'central_domain' => env('CENTRAL_DOMAIN', ''), | ||
|
||
'delete-before-date' => '2022-01-01', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('companies', function (Blueprint $table) { | ||
$table->id(); | ||
$table->foreignId('user_id')->index(); | ||
$table->string('name'); | ||
$table->string('slogan')->nullable(); | ||
$table->string('subdomain')->nullable(); | ||
$table->string('font_family')->nullable(); | ||
$table->string('primary_color')->nullable(); | ||
$table->string('cover')->nullable(); | ||
$table->string('logo')->nullable(); | ||
$table->timestamps(); | ||
$table->actionBy(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('companies'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('company_user', function (Blueprint $table) { | ||
$table->id(); | ||
$table->foreignId('company_id'); | ||
$table->foreignId('user_id'); | ||
$table->string('role')->nullable(); | ||
$table->timestamps(); | ||
$table->actionBy(); | ||
$table->unique(['company_id', 'user_id']); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('company_user'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?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('filament_email_log', function (Blueprint $table) { | ||
$table->id(); | ||
|
||
$table->string('from')->nullable(); | ||
$table->string('to')->nullable(); | ||
$table->string('cc')->nullable(); | ||
$table->string('bcc')->nullable(); | ||
$table->string('subject')->nullable(); | ||
$table->longText('text_body')->nullable(); | ||
$table->longText('html_body')->nullable(); | ||
$table->longText('raw_body')->nullable(); | ||
$table->longText('sent_debug_info')->nullable(); | ||
$table->integer('company_id')->nullable(); | ||
$table->actionBy(); | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
public function down() | ||
{ | ||
Schema::drop('filament_email_log'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
public function up(): void | ||
{ | ||
Schema::create('settings', function (Blueprint $table): void { | ||
$table->id(); | ||
|
||
$table->string('name'); | ||
$table->boolean('locked')->default(false); | ||
$table->json('payload'); | ||
$table->integer('company_id')->nullable(); | ||
|
||
$table->actionBy(); | ||
|
||
$table->timestamps(); | ||
$table->softDeletes(); | ||
|
||
$table->unique(['name', 'company_id']); | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
public function up(): void | ||
{ | ||
Schema::create('tags', function (Blueprint $table) { | ||
$table->id(); | ||
|
||
$table->json('name'); | ||
$table->json('slug'); | ||
$table->string('type')->nullable(); | ||
$table->integer('order_column')->nullable(); | ||
$table->integer('company_id')->nullable(); | ||
|
||
$table->actionBy(); | ||
$table->timestamps(); | ||
$table->softDeletes(); | ||
}); | ||
|
||
Schema::create('taggables', function (Blueprint $table) { | ||
$table->foreignId('tag_id')->constrained()->cascadeOnDelete(); | ||
|
||
$table->morphs('taggable'); | ||
|
||
$table->unique(['tag_id', 'taggable_id', 'taggable_type']); | ||
}); | ||
} | ||
|
||
public function down(): void | ||
{ | ||
Schema::dropIfExists('taggables'); | ||
Schema::dropIfExists('tags'); | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.