Create
Query
billing.db
—
invoices
admin_notifications
agent_balance_requests
agent_balances
agent_monthly_payments
agent_notifications
agent_payments
agent_transactions
agent_voucher_sales
agents
app_settings
cable_maintenance_logs
cable_routes
collector_assignments
collector_payments
collectors
customers
expenses
installation_job_equipment
installation_job_stat...
installation_jobs
invoices
migrations
monthly_summary
network_segments
odp_connections
odps
onu_devices
packages
payment_gateway_trans...
payments
sqlite_sequence
technician_activities
technician_sessions
technicians
telegram_sessions
trouble_reports
voucher_delivery_logs
voucher_generation_se...
voucher_online_settings
voucher_pricing
voucher_purchases
Toggle helper tables
Structure
Content
Query
Insert
Drop
Import
Export
Insert row into invoices
customer_id
INTEGER NOT NULL
package_id
INTEGER NOT NULL
invoice_number
TEXT NOT NULL
amount
DECIMAL(10,2) NOT NULL
due_date
DATE NOT NULL
status
TEXT (default 'unpaid')
payment_date
DATETIME
payment_method
TEXT
payment_gateway
TEXT
payment_token
TEXT
payment_url
TEXT
payment_status
TEXT (default 'pending')
notes
TEXT
created_at
DATETIME (default CURRENT_TIMESTAMP)
description
TEXT
invoice_type
TEXT (default 'monthly')
package_name
TEXT
base_amount
DECIMAL(10,2)
tax_rate
DECIMAL(5,2)
Insert
Cancel