قم إفلات الملفات هنا

SQL upload ( 0 ) x -

الإعدادات المتعلقة بالصفحة انقر على الشريط للتمرير إلى أعلى الصفحة
Press Ctrl+Enter to execute query Press Enter to execute query
ascending
descending
Order:
تصحيح SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse Expand Show trace Hide trace Count : Time taken :
Bookmarks
تحديث
إضافة
لا توجد إشارات مرجعية
إضافة للمفضلة
خيارات
Set default





Collapse Expand Requery تعديل Explain جانبي Bookmark Query failed قاعدة البيانات : Queried time :
بدون عنوان *
v Show/Hide tables list View in fullscreen اضافة جداول من قواعد بيانات اخري New page فتح الصفحة احفظ الصفحة حفظ الصفحة في صيغة Delete pages أنشئ الجدول Create relationship اختر الحقل لإظهاره Reload مساعدة Angular links / Direct links Snap to grid v Small/Big All Toggle small/big Toggle relationship lines Export schema > نقل القائمة > Pin text
عدد الجداول: 0
v smart_farm_finance cash_transactions
* id : bigint(20)
* direction : enum('in','out')
* txn_date : date
* amount : decimal(14,2)
* category : varchar(120)
* reference_type : varchar(40)
* reference_id : bigint(20)
* note : text
* created_by : int(11)
* created_at : timestamp
v smart_farm_finance cheques
* id : bigint(20)
* direction : enum('in','out')
* party_id : int(11)
* invoice_id : bigint(20)
* cheque_no : varchar(100)
* bank_name : varchar(160)
* amount : decimal(14,2)
* issue_date : date
* due_date : date
* status : enum('pending','deposited','cashed','returned','cancelled')
* note : text
* created_by : int(11)
* created_at : timestamp
v smart_farm_finance crops
* id : int(11)
* name : varchar(120)
* unit : varchar(30)
* active : tinyint(4)
v smart_farm_finance farms
* id : int(11)
* name : varchar(160)
* area : decimal(12,2)
* area_unit : varchar(30)
* location : varchar(255)
* note : text
* active : tinyint(4)
* created_at : timestamp
v smart_farm_finance farm_expenses
* id : bigint(20)
* farm_id : int(11)
* season_id : int(11)
* expense_date : date
* category : enum('agri_materials','irrigation_water','labor','equipment','other')
* description : varchar(255)
* amount : decimal(14,2)
* payment_method : enum('cash','bank','cheque','credit','other')
* party_id : int(11)
* due_date : date
* paid : decimal(14,2)
* note : text
* created_by : int(11)
* created_at : timestamp
v smart_farm_finance invoices
* id : bigint(20)
* invoice_no : varchar(50)
* type : enum('sale','purchase')
* party_id : int(11)
* invoice_date : date
* due_date : date
* total : decimal(14,2)
* paid : decimal(14,2)
* status : enum('paid','partial','unpaid')
* description : text
* note : text
* created_by : int(11)
* created_at : timestamp
v smart_farm_finance invoice_items
* id : bigint(20)
* invoice_id : bigint(20)
* crop_id : int(11)
* item_name : varchar(180)
* source_type : enum('own_farm','purchased','material','service','other')
* farm_id : int(11)
* season_id : int(11)
* quantity : decimal(14,3)
* unit : varchar(30)
* unit_price : decimal(14,4)
* unit_cost : decimal(14,4)
* line_total : decimal(14,2)
* note : text
v smart_farm_finance parties
* id : int(11)
* type : enum('customer','supplier','both')
* name : varchar(160)
* phone : varchar(50)
* address : varchar(255)
* opening_balance : decimal(14,2)
* note : text
* active : tinyint(4)
* created_at : timestamp
v smart_farm_finance payments
* id : bigint(20)
* direction : enum('in','out')
* party_id : int(11)
* invoice_id : bigint(20)
* payment_date : date
* amount : decimal(14,2)
* method : enum('cash','bank','cheque','other')
* reference_no : varchar(100)
* note : text
* created_by : int(11)
* created_at : timestamp
v smart_farm_finance production
* id : bigint(20)
* farm_id : int(11)
* season_id : int(11)
* crop_id : int(11)
* production_date : date
* quantity : decimal(14,3)
* unit : varchar(30)
* grade : varchar(80)
* note : text
* created_by : int(11)
* created_at : timestamp
v smart_farm_finance seasons
* id : int(11)
* farm_id : int(11)
* crop_id : int(11)
* name : varchar(160)
* start_date : date
* end_date : date
* status : enum('active','closed')
* note : text
v smart_farm_finance settings
* key : varchar(100)
* value : text
v smart_farm_finance users
* id : int(11)
* name : varchar(120)
* username : varchar(80)
* password_hash : varchar(255)
* role : enum('admin','accountant','viewer')
* active : tinyint(4)
* created_at : timestamp
v smart_farm_finance workers
* id : int(11)
* name : varchar(160)
* phone : varchar(60)
* hourly_rate : decimal(12,2)
* note : text
* active : tinyint(4)
* created_at : timestamp
v smart_farm_finance worker_advances
* id : bigint(20)
* worker_id : int(11)
* advance_date : date
* amount : decimal(14,2)
* note : text
* created_by : int(11)
* created_at : timestamp
v smart_farm_finance work_logs
* id : bigint(20)
* worker_id : int(11)
* farm_id : int(11)
* season_id : int(11)
* work_date : date
* hours : decimal(10,2)
* hourly_rate : decimal(12,2)
* amount : decimal(14,2)
* description : varchar(255)
* note : text
* created_by : int(11)
* created_at : timestamp
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship