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 schema blogs
* id : int(10) unsigned
* authorId : int(10) unsigned
* title : varchar(255)
* content : text
* category : varchar(100)
* coverImage : varchar(255)
* status : enum('draft','pending_approval','published','archived','rejected')
* approvedBy : int(10) unsigned
* approvedAt : datetime
* rejectionReason : text
* likes : int(10) unsigned
* createdAt : datetime
* updatedAt : datetime
* rejectedBy : int(10) unsigned
* rejectedAt : datetime
* submittedForApprovalAt : datetime
v schema blog_comments
* id : int(10) unsigned
* userId : int(10) unsigned
* blogId : int(10) unsigned
* comment : text
* approved : tinyint(1)
* approvedBy : int(10) unsigned
* approvedAt : datetime
* rejectionReason : text
* createdAt : datetime
* updatedAt : datetime
v schema blog_likes
* id : int(10) unsigned
* userId : int(10) unsigned
* blogId : int(10) unsigned
* createdAt : datetime
* updatedAt : datetime
v schema custom_events
* id : int(10) unsigned
* title : varchar(255)
* description : text
* date : date
* type : enum('holiday','celebration','special','announcement')
* icon : varchar(50)
* color : varchar(50)
* createdBy : int(10) unsigned
* createdAt : datetime
* updatedAt : datetime
v schema device_tokens
* id : int(10) unsigned
* userId : int(10) unsigned
* deviceToken : varchar(500)
* platform : enum('ios','android','web')
* deviceId : varchar(255)
* isActive : tinyint(1)
* createdAt : datetime
* updatedAt : datetime
v schema fcm_tokens
* id : int(10) unsigned
* userId : int(10) unsigned
* platform : enum('ios','android','web')
* fcmToken : varchar(512)
* deviceId : varchar(255)
* isActive : tinyint(1)
* createdAt : datetime
* updatedAt : datetime
v schema locations
* id : int(10) unsigned
* name : varchar(255)
* isDefault : tinyint(1)
* createdBy : int(10) unsigned
* isActive : tinyint(1)
* createdAt : datetime
* updatedAt : datetime
v schema media
* id : int(10) unsigned
* userId : int(10) unsigned
* tripId : int(10) unsigned
* url : varchar(255)
* type : enum('photo','video')
* caption : varchar(255)
* likes : int(10) unsigned
* createdAt : datetime
* updatedAt : datetime
v schema media_comments
* id : int(10) unsigned
* userId : int(10) unsigned
* mediaId : int(10) unsigned
* comment : text
* approved : tinyint(1)
* approvedBy : int(10) unsigned
* approvedAt : datetime
* rejectionReason : text
* createdAt : datetime
* updatedAt : datetime
v schema media_likes
* id : int(10) unsigned
* userId : int(10) unsigned
* mediaId : int(10) unsigned
* createdAt : datetime
* updatedAt : datetime
v schema newsletters
* id : int(10) unsigned
* title : varchar(255)
* subject : varchar(255)
* content : text
* htmlContent : text
* status : enum('draft','scheduled','sending','sent','failed')
* scheduledAt : datetime
* sentAt : datetime
* createdBy : int(10) unsigned
* totalSubscribers : int(10) unsigned
* successfulSends : int(10) unsigned
* failedSends : int(10) unsigned
* openRate : decimal(5,2)
* clickRate : decimal(5,2)
* createdAt : datetime
* updatedAt : datetime
v schema newsletter_sends
* id : int(10) unsigned
* newsletterId : int(10) unsigned
* subscriberEmail : varchar(255)
* status : enum('pending','sent','failed','bounced','opened','clicked')
* sentAt : datetime
* openedAt : datetime
* clickedAt : datetime
* errorMessage : text
* createdAt : datetime
* updatedAt : datetime
v schema newsletter_subscribers
* id : int(10) unsigned
* email : varchar(255)
* firstName : varchar(100)
* lastName : varchar(100)
* status : enum('active','unsubscribed','bounced')
* subscriptionSource : varchar(50)
* ipAddress : varchar(45)
* userAgent : text
* subscribedAt : datetime
* unsubscribedAt : datetime
* lastEmailSent : datetime
* emailsSent : int(10) unsigned
* createdAt : datetime
* updatedAt : datetime
v schema registrations
* id : int(10) unsigned
* userId : int(10) unsigned
* tripId : int(10) unsigned
* status : enum('confirmed','waitlist','cancelled')
* passengers : int(10) unsigned
* gear : longtext
* emergencyContact : varchar(50)
* phone : varchar(50)
* car : varchar(255)
* carYear : int(10) unsigned
* notes : text
* createdAt : datetime
* updatedAt : datetime
v schema testimonials
* id : int(10) unsigned
* userId : int(10) unsigned
* content : text
* rating : int(10) unsigned
* photo : varchar(255)
* approved : tinyint(1)
* createdAt : datetime
* updatedAt : datetime
v schema trips
* id : int(10) unsigned
* title : varchar(255)
* description : text
* date : date
* time : varchar(50)
* location : varchar(255)
* mapCoordinates : varchar(100)
* leadOrganizer : varchar(255)
* requirements : text
* equipmentChecklist : text
* meetingPoint : varchar(255)
* gallery : longtext
* status : enum('upcoming','completed','cancelled')
* createdBy : int(10) unsigned
* type : enum('drive','album')
* createdAt : datetime
* updatedAt : datetime
* meetingTimeMinutes : int(11)
v schema users
* id : int(10) unsigned
* fullName : varchar(255)
* email : varchar(255)
* passwordHash : varchar(255)
* driverLevel : varchar(50)
* phone : varchar(50)
* emergencyContact : varchar(50)
* drivingExperience : int(10) unsigned
* car : varchar(255)
* carYear : int(10) unsigned
* totalDrives : int(10) unsigned
* joinedDate : date
* avatar : varchar(255)
* role : enum('user','admin')
* emailVerified : tinyint(1)
* disclaimerAccepted : tinyint(1)
* disclaimerAcceptedAt : datetime
* createdAt : datetime
* updatedAt : datetime
* resetPasswordToken : varchar(255)
* resetPasswordExpires : datetime
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship