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 lotto_db lotto
* lotto_id : int(100)
* lotto_type : int(10)
* lotto_name : varchar(100)
* bet_twodit_up : int(10)
* bet_twodit_down : int(10)
* bet_three_up : int(100)
* bet_three_toad : int(100)
* bet_three_bottom : int(100)
* bet_three_front : int(100)
* bet_run_up : decimal(10,2)
* bet_run_down : decimal(10,2)
* create_by : varchar(100)
* create_at : timestamp
v lotto_db lotto_limits
* id : int(11)
* lotto_id : int(11)
* lotto_type : varchar(10)
* limit_number : varchar(5)
* limit_price : int(11)
* created_at : timestamp
* schedule_id : int(11)
v lotto_db lotto_results
* result_id : int(11)
* lotto_id : int(11)
* schedule_id : int(11)
* draw_date : date
* first_prize : varchar(6)
* up2 : varchar(2)
* down2 : varchar(2)
* up3 : varchar(3)
* toad3 : varchar(50)
* bot3 : varchar(50)
* front3 : varchar(50)
* runUp : varchar(15)
* runDown : varchar(15)
* created_at : datetime
v lotto_db lotto_schedule
* schedule_id : int(11)
* lotto_id : int(100)
* draw_date : date
* open_time : datetime
* close_time : datetime
* status : enum('open','closed','drawn')
* created_at : timestamp
v lotto_db lotto_tickets
* ticket_id : int(11)
* user_id : int(11)
* lotto_id : int(11)
* draw_date : date
* bet_total : int(11)
* created_at : timestamp
* status : enum('pending','checked','won','lost')
* schedule_id : int(11)
v lotto_db lotto_ticket_numbers
* id : int(11)
* ticket_id : int(11)
* number : varchar(10)
* type : enum('up2','down2','up3','toad3','bot3','front3','runUp','runDown')
* bet_amount : decimal(10,2)
* payout_ratio : decimal(10,2)
* is_winning : decimal(10,2)
v lotto_db transactions
* id : int(11)
* user_id : int(11)
* type : enum('deposit','withdraw')
* amount : decimal(10,2)
* status : enum('pending','completed','failed')
* created_at : timestamp
v lotto_db users
* user_id : int(11)
* username : varchar(50)
* password : varchar(255)
* email : varchar(100)
* balance : decimal(10,2)
* created_at : timestamp
v lotto_db winning_log
* log_id : int(11)
* schedule_id : int(11)
* lotto_id : int(11)
* draw_date : date
* type : enum('up2','down2','up3','toad3','bot3','front3','runUp','runDown')
* total_payout : decimal(10,2)
* created_at : timestamp
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship