[Superuser] Integrasi Pertama ke Database

This commit is contained in:
Ariyutta
2026-11-11 18:26:23 +07:00
parent eba6ab77b4
commit c12c634b4f
47 changed files with 2322 additions and 109 deletions
+30
View File
@@ -447,6 +447,10 @@ trait FakesLegacyDatabase
$table->string('jenis');
$table->string('keterangan')->nullable();
$table->smallInteger('urutan')->nullable();
$table->string('cname', 20)->nullable();
$table->string('cip', 20)->nullable();
$table->string('uname', 15)->nullable();
$table->timestamp('tanggal')->nullable();
});
$schema->create('t_konsentrasi', function (Blueprint $table) {
$table->increments('idkonsentrasi');
@@ -545,6 +549,32 @@ trait FakesLegacyDatabase
$table->increments('idotoritasuser');
$table->integer('iduser');
$table->integer('idotoritas');
// Kolom audit NOT NULL di DB asli (cname, cip, uname, tanggal).
$table->string('cname', 20)->nullable();
$table->string('cip', 20)->default('10.0.0.1/32');
$table->string('uname', 15)->nullable();
$table->timestamp('tanggal')->useCurrent();
});
$schema->create('t_historilogin', function (Blueprint $table) {
$table->increments('idhistori');
$table->integer('iduser');
$table->timestamp('logintimestamp')->nullable();
$table->string('logincname')->nullable();
$table->string('logincip')->nullable();
});
$schema->create('t_menu', function (Blueprint $table) {
$table->integer('idmenu')->primary();
$table->string('kdmenu');
$table->string('menu');
$table->integer('idmenuinduk')->nullable();
$table->boolean('islink')->default(false);
$table->boolean('secure')->default(false);
});
$schema->create('t_menuotoritas', function (Blueprint $table) {
$table->increments('idmenuotoritas');
$table->integer('idmenu');
$table->integer('idotoritas');
$table->boolean('bybagian')->default(false);
});
$schema->create('t_unituser', function (Blueprint $table) {
$table->increments('idunituser');