Commit Graph

4 Commits

Author SHA1 Message Date
Lutfi Hakim ca98d0a665 Fix peminjaman FK and use id_buku in views
Add migration to fix peminjaman.id_buku foreign key: modify column to INT UNSIGNED and re-create FK referencing buku.id_buku with cascadeOnDelete. Update admin peminjaman blades to use $b->id_buku for option values. Remove unused imports and tidy up formatting/whitespace in Peminjaman and AdminPeminjaman controllers (including small reformat of Fonnte API payload). These changes ensure the dropdowns use the correct book identifier and the DB relation is consistent.
2026-05-01 23:36:20 +07:00
Lutfi Hakim 74ae662d99 add seeders
Standardize the Buku schema and wiring: change Buku model to use table 'buku' and primary key id_buku, add/adjust migrations to create/alter the buku table and related tables (lokasi fields, adjusted foreign keys), and add a migration to provide nim on anggotas. Update controllers to reference id_buku (queries, ordering) and make related schema-friendly adjustments. Add multiple seeders (AnggotaSeeder, BukuFromSqlSeeder, BukuSeeder, BukuTamuSeeder updates, KategoriSeeder, PeminjamanSeeder, UserSeeder) and minor view/controller cleanup/formatting tweaks. These changes align database structure, relations and seed data with the new primary key/table naming and support new fields (lokasi, bibliographic fields, guest/peminjaman updates).
2026-04-30 14:35:20 +07:00
Lutfi Hakim f64ea3a4fa Fix: kategori table migration and update admin buku views 2026-04-30 07:51:09 +07:00
wardhatul1765 01c985e0f6 first commit 2026-04-29 20:58:38 +07:00