Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Apr 27, 2024
1 parent 9ffc1cf commit 11d32fc
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
19 changes: 19 additions & 0 deletions web/Modules/Docker/App/Models/DockerTemplate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace Modules\Docker\App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Docker\Database\factories\DockerTemplateFactory;

class DockerTemplate extends Model
{
use HasFactory;

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


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?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('docker_templates', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('description')->nullable();
$table->longText('docker_compose')->nullable();
$table->timestamps();
});
}

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

0 comments on commit 11d32fc

Please sign in to comment.