Add Exif storing and update to Metadata endpoint
This commit is contained in:
2
migrations/2025-12-17-000000_create_image_exif/down.sql
Normal file
2
migrations/2025-12-17-000000_create_image_exif/down.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
DROP INDEX IF EXISTS idx_image_exif_file_path;
|
||||
DROP TABLE IF EXISTS image_exif;
|
||||
32
migrations/2025-12-17-000000_create_image_exif/up.sql
Normal file
32
migrations/2025-12-17-000000_create_image_exif/up.sql
Normal file
@@ -0,0 +1,32 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user