Drop files here

SQL upload ( 0 ) x -

Page-related settings Click on the bar to scroll to top of page
Press Ctrl+Enter to execute query Press Enter to execute query
ascending
descending
Order:
Debug SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse Expand Show trace Hide trace Count : Time taken :
Bookmarks
Refresh
Add
No bookmarks
Add bookmark
Options
Set default





Collapse Expand Requery Edit Explain Profiling Bookmark Query failed Database : Queried time :
Untitled *
v Show/Hide tables list View in fullscreen Add tables from other databases New page Open page Save page Save page as Delete pages Create table Create relationship Choose column to display Reload Help Angular links / Direct links Snap to grid v Small/Big All Toggle small/big Toggle relationship lines Export schema > Move Menu > Pin text
Number of tables: 0
v sembada_db akun_keuangan
* id : int(11)
* kode_akun : varchar(20)
* nama_akun : varchar(100)
* jenis : enum('ASET','KEWAJIBAN','EKUITAS','PENDAPATAN','BIAYA')
* kategori : enum('Lancar','Tetap','Jangka Pendek','Jangka Panjang','Modal','Operasional','Non-Operasional')
* parent_id : int(11)
* level : int(11)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sembada_db biaya_operasional
* id : int(11)
* nomor_biaya : varchar(50)
* tanggal : date
* akun_id : int(11)
* jumlah : decimal(15,2)
* deskripsi : text
* bukti : varchar(255)
* status : enum('draft','approved','paid','cancelled')
* created_by : int(11)
* approved_by : int(11)
* created_at : timestamp
* updated_at : timestamp
v sembada_db categories
* id : int(11)
* name : varchar(100)
* description : text
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sembada_db company_profile
* id : int(11)
* nama_perusahaan : varchar(255)
* alamat : text
* telepon : varchar(50)
* email : varchar(100)
* npwp : varchar(50)
* info_bank : text
* nama_direktur : varchar(100)
* logo_path : varchar(255)
* signature_path : varchar(255)
* updated_at : datetime
v sembada_db customers
* id : int(11)
* customer_code : varchar(50)
* name : varchar(200)
* email : varchar(100)
* phone : varchar(20)
* address : text
* city : varchar(100)
* province : varchar(100)
* postal_code : varchar(10)
* customer_type : enum('retail','wholesale','distributor')
* credit_limit : decimal(15,2)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
* payment_term_days : int(11)
v sembada_db hutang_keuangan
* id : int(11)
* nomor_hutang : varchar(50)
* supplier_id : int(11)
* tanggal : date
* jumlah : decimal(15,2)
* jumlah_terbayar : decimal(15,2)
* jatuh_tempo : date
* status : enum('belum_lunas','sebagian_lunas','lunas','jatuh_tempo','cancelled')
* notes : text
* created_by : int(11)
* created_at : timestamp
* updated_at : timestamp
v sembada_db hutang_pembayaran
* id : int(11)
* hutang_id : int(11)
* tanggal : date
* jumlah : decimal(15,2)
* metode : enum('TUNAI','TRANSFER','Giro','Kompensasi')
* referensi : varchar(100)
* notes : text
* created_by : int(11)
* created_at : timestamp
v sembada_db items
* id : int(11)
* sku : varchar(50)
* name : varchar(200)
* category_id : int(11)
* unit_id : int(11)
* min_stock : int(11)
* max_stock : int(11)
* price : decimal(15,2)
* cost : decimal(15,2)
* description : text
* image : varchar(255)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sembada_db item_batches
* id : int(11)
* item_id : int(11)
* batch_number : varchar(100)
* expiry_date : date
* quantity : int(11)
* remaining_quantity : int(11)
* warehouse_id : int(11)
* purchase_order_id : int(11)
* received_date : date
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sembada_db item_units
* id : int(11)
* item_id : int(11)
* unit_id : int(11)
* conversion_factor : decimal(10,4)
* is_primary : tinyint(1)
* is_purchase : tinyint(1)
* is_sales : tinyint(1)
* created_at : timestamp
v sembada_db jurnal_detail
* id : int(11)
* jurnal_id : int(11)
* akun_id : int(11)
* debet : decimal(15,2)
* kredit : decimal(15,2)
* referensi : varchar(100)
v sembada_db jurnal_umum
* id : int(11)
* nomor_jurnal : varchar(50)
* tanggal : date
* deskripsi : text
* status : enum('draft','posted','cancelled')
* created_by : int(11)
* created_at : timestamp
* updated_at : timestamp
v sembada_db keuangan_settings
* id : int(11)
* setting_key : varchar(50)
* setting_value : text
* description : varchar(255)
* updated_at : timestamp
v sembada_db piutang_keuangan
* id : int(11)
* nomor_piutang : varchar(50)
* customer_id : int(11)
* tanggal : date
* jumlah : decimal(15,2)
* jumlah_terbayar : decimal(15,2)
* jatuh_tempo : date
* status : enum('belum_lunas','sebagian_lunas','lunas','jatuh_tempo','cancelled')
* notes : text
* created_by : int(11)
* created_at : timestamp
* updated_at : timestamp
v sembada_db piutang_pembayaran
* id : int(11)
* piutang_id : int(11)
* tanggal : date
* jumlah : decimal(15,2)
* metode : enum('TUNAI','TRANSFER','Giro','Kompensasi')
* referensi : varchar(100)
* notes : text
* created_by : int(11)
* created_at : timestamp
v sembada_db purchase_orders
* id : int(11)
* order_number : varchar(50)
* supplier_id : int(11)
* order_date : date
* due_date : date
* total_amount : decimal(15,2)
* discount_amount : decimal(15,2)
* tax_amount : decimal(15,2)
* paid_amount : decimal(15,2)
* status : enum('draft','ordered','received','cancelled')
* notes : text
* created_by : int(11)
* created_at : timestamp
* updated_at : timestamp
v sembada_db purchase_order_details
* id : int(11)
* order_id : int(11)
* item_id : int(11)
* quantity : int(11)
* unit_cost : decimal(15,2)
* total_cost : decimal(15,2)
* created_at : timestamp
* unit_id : int(11)
* conversion_factor : decimal(10,4)
v sembada_db sales_orders
* id : int(11)
* order_number : varchar(50)
* customer_id : int(11)
* order_date : date
* due_date : date
* total_amount : decimal(15,2)
* discount_amount : decimal(15,2)
* discount_type : enum('nominal','percentage')
* discount_percent : decimal(5,2)
* tax_amount : decimal(15,2)
* paid_amount : decimal(15,2)
* status : enum('draft','confirmed','processing','shipped','delivered','cancelled')
* payment_type : enum('cash','credit')
* payment_status : enum('unpaid','partial','paid')
* paid_date : datetime
* notes : text
* created_by : int(11)
* created_at : timestamp
* updated_at : timestamp
v sembada_db sales_order_details
* id : int(11)
* order_id : int(11)
* item_id : int(11)
* quantity : int(11)
* unit_price : decimal(15,2)
* price_override : decimal(15,2)
* total_price : decimal(15,2)
* created_at : timestamp
* unit_id : int(11)
* conversion_factor : decimal(10,4)
v sembada_db stock
* id : int(11)
* item_id : int(11)
* quantity : int(11)
* warehouse_id : int(11)
* created_at : timestamp
* updated_at : timestamp
v sembada_db stock_opnames
* id : int(11)
* opname_number : varchar(50)
* opname_date : date
* notes : text
* status : enum('draft','completed','cancelled')
* total_items : int(11)
* total_plus : int(11)
* total_minus : int(11)
* created_by : int(11)
* created_at : timestamp
* updated_at : timestamp
v sembada_db stock_opname_details
* id : int(11)
* opname_id : int(11)
* item_id : int(11)
* book_stock : int(11)
* physical_count : int(11)
* difference : int(11)
* created_at : timestamp
v sembada_db suppliers
* id : int(11)
* supplier_code : varchar(50)
* name : varchar(200)
* email : varchar(100)
* phone : varchar(20)
* address : text
* city : varchar(100)
* province : varchar(100)
* postal_code : varchar(10)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
* credit_limit : decimal(15,2)
* payment_term_days : int(11)
v sembada_db tokos
* id : int(11)
* toko_code : varchar(50)
* nama_toko : varchar(150)
* alamat : text
* kecamatan : varchar(100)
* kota : varchar(100)
* telepon : varchar(20)
* email : varchar(100)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sembada_db transactions
* id : int(11)
* item_id : int(11)
* transaction_type : enum('in','out','adjustment','transfer')
* quantity : int(11)
* reference_type : varchar(50)
* reference_id : int(11)
* notes : text
* created_by : int(11)
* created_at : timestamp
v sembada_db transaksi_kas
* id : int(11)
* nomor_transaksi : varchar(50)
* tanggal : date
* jenis : enum('MASUK','KELUAR')
* kategori : varchar(50)
* akun_id : int(11)
* jumlah : decimal(15,2)
* deskripsi : text
* referensi : varchar(100)
* referensi_id : int(11)
* created_by : int(11)
* created_at : timestamp
* updated_at : timestamp
v sembada_db units
* id : int(11)
* name : varchar(50)
* abbreviation : varchar(10)
* created_at : timestamp
* updated_at : timestamp
v sembada_db users
* id : int(11)
* username : varchar(50)
* password : varchar(255)
* name : varchar(100)
* email : varchar(100)
* role : enum('admin','manager','sales','warehouse','finance')
* is_active : tinyint(1)
* last_login : datetime
* created_at : timestamp
* updated_at : timestamp
v sembada_db warehouses
* id : int(11)
* name : varchar(100)
* address : text
* city : varchar(100)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship