-- Check all constraints on the bids table
-- Run these queries to find any constraints:

-- Query 1: Check all table constraints
SELECT 
    CONSTRAINT_NAME,
    CONSTRAINT_TYPE
FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
WHERE TABLE_SCHEMA = DATABASE()
  AND TABLE_NAME = 'bids';

-- Query 2: Check key column usage (includes foreign keys)
SELECT 
    CONSTRAINT_NAME,
    COLUMN_NAME,
    REFERENCED_TABLE_NAME
FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE
WHERE TABLE_SCHEMA = DATABASE()
  AND TABLE_NAME = 'bids'
  AND REFERENCED_TABLE_NAME IS NOT NULL;

-- Query 3: Get full table structure (scroll to see the full CREATE TABLE)
SHOW CREATE TABLE `bids`;

-- Look in the CREATE TABLE output for CONSTRAINT lines
-- They might be at the end of the CREATE TABLE statement

