CREATE TABLE image_exif (
    id INTEGER PRIMARY KEY NOT NULL,
    file_path TEXT NOT NULL UNIQUE,

    -- Camera Information
    camera_make TEXT,
    camera_model TEXT,
    lens_model TEXT,

    -- Image Properties
    width INTEGER,
    height INTEGER,
    orientation INTEGER,

    -- GPS Coordinates
    gps_latitude REAL,
    gps_longitude REAL,
    gps_altitude REAL,

    -- Capture Settings
    focal_length REAL,
    aperture REAL,
    shutter_speed TEXT,
    iso INTEGER,
    date_taken BIGINT,

    -- Housekeeping
    created_time BIGINT NOT NULL,
    last_modified BIGINT NOT NULL
);

CREATE INDEX idx_image_exif_file_path ON image_exif(file_path);
