-- Sample Election Data
INSERT INTO elections (id, title, description, status, start_date_and_time, end_date_and_time, created_by)
VALUES (
    'sample-election-uuid',
    'School Year 2028 Election',
    'General student council elections for the upcoming school year.',
    'Ongoing',
    '2026-02-11 08:00:00',
    '2026-02-18 17:00:00',
    'admin-uuid-1'
);

-- Sample Voters (to match the "8" in the screenshot)
INSERT INTO users (id, student_id, name, email, password_hash, role) VALUES 
('voter-1', '21-0001', 'John Doe', 'john@example.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'Voter'),
('voter-2', '21-0002', 'Jane Smith', 'jane@example.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'Voter'),
('voter-3', '21-0003', 'Bob Johnson', 'bob@example.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'Voter'),
('voter-4', '21-0004', 'Alice Brown', 'alice@example.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'Voter'),
('voter-5', '21-0005', 'Charlie Davis', 'charlie@example.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'Voter'),
('voter-6', '21-0006', 'Eve Wilson', 'eve@example.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'Voter'),
('voter-7', '21-0007', 'Frank Miller', 'frank@example.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'Voter'),
('voter-8', '21-0008', 'Grace Lee', 'grace@example.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'Voter');

-- Sample Candidates (to match the "15" in the screenshot)
-- We'll need some positions first
INSERT INTO positions (id, election_id, name, max_votes, sort_order) VALUES
('pos-1', 'sample-election-uuid', 'President', 1, 1),
('pos-2', 'sample-election-uuid', 'Vice President', 1, 2);

-- Insert 15 candidates (reusing voters for simplicity in this mockup)
INSERT INTO candidates (id, election_id, position_id, user_id, party_name, approved) VALUES
('cand-1', 'sample-election-uuid', 'pos-1', 'voter-1', 'Unity Party', 1),
('cand-2', 'sample-election-uuid', 'pos-1', 'voter-2', 'Progress Party', 1),
('cand-3', 'sample-election-uuid', 'pos-2', 'voter-3', 'Unity Party', 1),
('cand-4', 'sample-election-uuid', 'pos-2', 'voter-4', 'Progress Party', 1),
('cand-5', 'sample-election-uuid', 'pos-1', 'voter-5', 'Independent', 1),
('cand-6', 'sample-election-uuid', 'pos-2', 'voter-6', 'Independent', 1),
('cand-7', 'sample-election-uuid', 'pos-1', 'voter-7', 'Students First', 1),
('cand-8', 'sample-election-uuid', 'pos-2', 'voter-8', 'Students First', 1),
('cand-9', 'sample-election-uuid', 'pos-1', 'admin-uuid-1', 'Faculty Choice', 1),
('cand-10', 'sample-election-uuid', 'pos-2', 'admin-uuid-1', 'Faculty Choice', 1),
-- Adding more to reach 15
('cand-11', 'sample-election-uuid', 'pos-1', 'voter-1', 'Extra 1', 1),
('cand-12', 'sample-election-uuid', 'pos-2', 'voter-2', 'Extra 2', 1),
('cand-13', 'sample-election-uuid', 'pos-1', 'voter-3', 'Extra 3', 1),
('cand-14', 'sample-election-uuid', 'pos-2', 'voter-4', 'Extra 4', 1),
('cand-15', 'sample-election-uuid', 'pos-1', 'voter-5', 'Extra 5', 1);
