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 agro_system activity_logs
* id : int(11)
* user_id : int(11)
* tenant_id : int(11)
* action : varchar(100)
* description : text
* ip_address : varchar(45)
* user_agent : text
* created_at : timestamp
v agro_system business_types
* id : int(11)
* name : varchar(100)
* description : text
* created_at : timestamp
v agro_system expense_categories
* id : int(11)
* tenant_id : int(11)
* name : varchar(100)
* category_type : enum('expense','income','both')
* description : text
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v agro_system farm_activities
* id : int(11)
* tenant_id : int(11)
* activity_code : varchar(50)
* activity_name : varchar(100)
* activity_type : enum('pemupukan','panen','vaksin','pembersihan','pengobatan','pembibitan','perawatan','lainnya')
* description : text
* is_recurring : tinyint(1)
* recurring_days : int(11)
* created_at : datetime
* updated_at : datetime
v agro_system farm_activity_logs
* id : int(11)
* tenant_id : int(11)
* location_id : int(11)
* activity_id : int(11)
* activity_date : date
* notes : text
* quantity : decimal(12,2)
* unit : varchar(20)
* status : enum('planned','completed','cancelled')
* performed_by : int(11)
* created_at : datetime
* updated_at : datetime
v agro_system farm_locations
* id : int(11)
* tenant_id : int(11)
* location_code : varchar(50)
* location_name : varchar(100)
* location_type : enum('kandang','lahan','blok','kebun','sawah')
* description : text
* capacity : int(11)
* is_active : tinyint(1)
* created_at : datetime
* updated_at : datetime
v agro_system farm_production
* id : int(11)
* tenant_id : int(11)
* location_id : int(11)
* production_date : date
* production_type : enum('panen','susu','telur','kandang','lainnya')
* quantity : decimal(12,2)
* unit : varchar(20)
* quality : varchar(50)
* notes : text
* created_at : datetime
* updated_at : datetime
v agro_system farm_schedules
* id : int(11)
* tenant_id : int(11)
* location_id : int(11)
* activity_id : int(11)
* schedule_date : date
* schedule_time : time
* is_recurring : tinyint(1)
* recurring_type : enum('daily','weekly','monthly')
* reminder_enabled : tinyint(1)
* reminder_before_hours : int(11)
* status : enum('pending','completed','cancelled')
* notes : text
* created_at : datetime
* updated_at : datetime
v agro_system master_categories
* id : int(11)
* name : varchar(50)
* type : enum('pemasukan','pengeluaran','stok')
* description : text
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v agro_system master_products
* id : int(11)
* name : varchar(100)
* description : text
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v agro_system master_units
* id : int(11)
* name : varchar(50)
* symbol : varchar(10)
* description : text
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v agro_system productions
* id : int(11)
* tenant_id : int(11)
* production_number : varchar(50)
* production_type : enum('ternak','sawit','padi','karet')
* production_date : date
* location_id : int(11)
* location_code : varchar(50)
* location_name : varchar(100)
* ternak_jumlah_ayam : int(11)
* ternak_telur_butir : int(11)
* ternak_telur_kg : decimal(10,2)
* ternak_telur_pecah : int(11)
* ternak_mortalitas : int(11)
* ternak_pakan_kg : decimal(10,2)
* sawit_tonase_tbs : decimal(10,2)
* sawit_berat_rerata : decimal(10,2)
* sawit_jumlah_tandan : int(11)
* sawit_kualitas : varchar(50)
* padi_hasil_panen : decimal(10,2)
* pci_produktivitas : decimal(10,2)
* pci_luas_lahan : decimal(10,2)
* pci_bibit_kg : decimal(10,2)
* karet_hasil_getah : decimal(10,2)
* karet_kadar_karet : decimal(5,2)
* karet_jumlah_pohon : int(11)
* total_quantity : decimal(12,2)
* unit : varchar(20)
* notes : text
* status : enum('pending','confirmed','cancelled')
* created_by : int(11)
* created_at : datetime
* updated_at : datetime
v agro_system production_items
* id : int(11)
* tenant_id : int(11)
* production_id : int(11)
* item_name : varchar(100)
* item_category : varchar(50)
* quantity : decimal(12,2)
* unit : varchar(20)
* unit_price : decimal(12,2)
* total_price : decimal(12,2)
* notes : text
* created_at : datetime
v agro_system production_summary
* id : int(11)
* tenant_id : int(11)
* production_type : enum('ternak','sawit','padi','karet')
* period_type : enum('daily','weekly','monthly','yearly')
* period_start : date
* period_end : date
* total_quantity : decimal(12,2)
* total_records : int(11)
* average_quantity : decimal(10,2)
* notes : text
* created_at : datetime
* updated_at : datetime
v agro_system settings
* id : int(11)
* app_name : varchar(100)
* timezone : varchar(50)
* updated_at : timestamp
v agro_system stock_movements
* id : int(11)
* tenant_id : int(11)
* product_id : int(11)
* product_name : varchar(100)
* unit_id : int(11)
* unit_name : varchar(50)
* movement_type : enum('in','out','adjustment')
* quantity_before : decimal(12,3)
* quantity_change : decimal(12,3)
* quantity_after : decimal(12,3)
* reference_type : enum('sale','expense','purchase','production','stock_movement','adjustment')
* reference_id : int(11)
* transaction_item_id : int(11)
* warehouse_id : int(11)
* notes : text
* created_at : timestamp
* updated_at : timestamp
v agro_system tenants
* id : int(11)
* name : varchar(100)
* created_at : timestamp
v agro_system tenant_modules
* id : int(11)
* tenant_id : int(11)
* module_code : varchar(50)
* module_name : varchar(100)
* is_active : tinyint(1)
* created_at : datetime
v agro_system transaction_items
* id : int(11)
* transaction_id : int(11)
* product_id : int(11)
* product_name : varchar(100)
* unit_id : int(11)
* unit_name : varchar(50)
* quantity : decimal(12,3)
* unit_price : decimal(15,2)
* total_price : decimal(15,2)
* category_id : int(11)
* category_name : varchar(50)
* notes : text
* created_at : timestamp
* updated_at : timestamp
v agro_system universal_transactions
* id : int(11)
* tenant_id : int(11)
* transaction_number : varchar(50)
* transaction_type : enum('sale','expense','purchase','production','stock_movement')
* transaction_date : date
* status : enum('draft','confirmed','cancelled')
* total_amount : decimal(15,2)
* notes : text
* reference_number : varchar(100)
* created_by : int(11)
* created_at : timestamp
* updated_at : timestamp
v agro_system users
* id : int(11)
* tenant_id : int(11)
* fullname : varchar(100)
* username : varchar(50)
* password : varchar(255)
* role : enum('superadmin','admin','operator','kasir','gudang','petani','peternak')
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v agro_system user_activities
* id : int(11)
* user_id : int(11)
* tenant_id : int(11)
* activity_type : enum('login','logout','failed_login')
* ip_address : varchar(45)
* user_agent : text
* status : enum('success','failed')
* created_at : timestamp
v agro_system warehouses
* id : int(11)
* tenant_id : int(11)
* name : varchar(100)
* description : text
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship