Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobicloudvision committed Jan 30, 2025
1 parent c42b143 commit 0db8072
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
22 changes: 22 additions & 0 deletions web/Modules/SSLManager/App/Models/Certificate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace Modules\SSLManager\App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\SSLManager\Database\factories\CertificateFactory;

class Certificate extends Model
{
use HasFactory;

/**
* The attributes that are mass assignable.
*/
protected $fillable = [];

protected static function newFactory(): CertificateFactory
{
//return CertificateFactory::new();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?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('certificates', function (Blueprint $table) {
$table->id();

$table->string('domain')->nullable();
$table->string('email')->nullable();
$table->longText('certificate')->nullable();
$table->longText('private_key')->nullable();
$table->longText('chain')->nullable();
$table->longText('fullchain')->nullable();
$table->string('expires_at')->nullable();
$table->string('status')->nullable();
$table->bigInteger('domain_id')->nullable();
$table->bigInteger('domain_ssl_certificate_id')->nullable();
$table->string('type')->nullable();
$table->string('issuer')->nullable();
$table->string('valid_from')->nullable();

$table->timestamps();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('certificates');
}
};

0 comments on commit 0db8072

Please sign in to comment.