From 0db80728e1ceaf64c33963c4796ecf9511c30c44 Mon Sep 17 00:00:00 2001 From: Bozhidar Slaveykov Date: Thu, 30 Jan 2025 17:06:00 +0200 Subject: [PATCH] update --- .../SSLManager/App/Models/Certificate.php | 22 ++++++++++ ...01_30_150248_create_certificates_table.php | 42 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 web/Modules/SSLManager/App/Models/Certificate.php create mode 100644 web/Modules/SSLManager/Database/migrations/2025_01_30_150248_create_certificates_table.php diff --git a/web/Modules/SSLManager/App/Models/Certificate.php b/web/Modules/SSLManager/App/Models/Certificate.php new file mode 100644 index 0000000..a396343 --- /dev/null +++ b/web/Modules/SSLManager/App/Models/Certificate.php @@ -0,0 +1,22 @@ +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'); + } +};