-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8604b71
commit a5e691d
Showing
3 changed files
with
65 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace App\Models; | ||
|
||
use Illuminate\Database\Eloquent\Factories\HasFactory; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class HostingSubscriptionBackup extends Model | ||
{ | ||
use HasFactory; | ||
} |
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
53 changes: 53 additions & 0 deletions
53
web/database/migrations/2024_04_25_134711_create_hosting_subscription_backups_table.php
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,53 @@ | ||
<?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('hosting_subscription_backups', function (Blueprint $table) { | ||
$table->id(); | ||
|
||
$table->bigInteger('hosting_subscription_id')->nullable(); | ||
$table->string('backup_type')->nullable(); | ||
$table->string('status')->nullable(); | ||
$table->string('path')->nullable(); | ||
$table->string('filepath')->nullable(); | ||
$table->string('size')->nullable(); | ||
$table->string('disk')->nullable(); | ||
$table->string('process_id')->nullable(); | ||
$table->longText('settings')->nullable(); | ||
|
||
$table->tinyInteger('queued')->nullable(); | ||
$table->timestamp('queued_at')->nullable(); | ||
|
||
$table->tinyInteger('started')->nullable(); | ||
$table->timestamp('started_at')->nullable(); | ||
|
||
$table->tinyInteger('completed')->nullable(); | ||
$table->timestamp('completed_at')->nullable(); | ||
|
||
$table->tinyInteger('failed')->nullable(); | ||
$table->timestamp('failed_at')->nullable(); | ||
|
||
$table->tinyInteger('cancelled')->nullable(); | ||
$table->timestamp('cancelled_at')->nullable(); | ||
|
||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('hosting_subscription_backups'); | ||
} | ||
}; |