Updated ERP with new modules and features

This commit is contained in:
Kwesi Banson
2026-09-22 08:06:31 +00:00
parent 71bc103fee
commit 5174e82e51
53 changed files with 3706 additions and 203 deletions

View File

@@ -0,0 +1,34 @@
<?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('servers', function (Blueprint $table) {
$table->id();
$table->string('name'); // e.g., "Main PBX Engine" or "Synology NAS"
$table->string('ip_address');
$table->string('os_version')->nullable(); // e.g., "AlmaLinux 9", "Debian"
$table->string('username')->default('root');
$table->text('password'); // Will be encrypted via Model casting
$table->json('services')->nullable(); // Array of services like ['Docker', 'PostGIS', 'Dovecot']
$table->string('status')->default('Active');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('servers');
}
};