-- Create team_members table for About Us page team section
CREATE TABLE IF NOT EXISTS team_members (
    id SERIAL PRIMARY KEY,
    name VARCHAR(255) NOT NULL,
    position VARCHAR(255) NOT NULL,
    bio TEXT,
    image_url VARCHAR(500),
    display_order INTEGER DEFAULT 0,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

-- Create index on display_order for sorting
CREATE INDEX idx_team_members_display_order ON team_members(display_order);

-- Add some sample data
INSERT INTO team_members (name, position, bio, image_url, display_order) VALUES
('Jane Doe', 'Founder & Lead Artist', 'With over 15 years of experience in fine arts, Jane founded Sky Art Shop to share her passion for creativity with the world. She specializes in contemporary paintings and custom commissions.', NULL, 1),
('John Smith', 'Gallery Manager', 'John brings his expertise in art curation and customer service to ensure every client finds the perfect piece. He has a keen eye for emerging artists and trends in the art world.', NULL, 2),
('Emily Chen', 'Digital Artist', 'Emily creates stunning digital artwork and prints. Her modern approach to traditional subjects has made her a favorite among our younger clientele. She also teaches digital art workshops.', NULL, 3);
