This repository has been archived on 2023-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
imagini/db/schemas/sqlite-testdata.sql

24 lines
1.7 KiB
MySQL
Raw Normal View History

2021-01-04 05:16:58 +00:00
INSERT INTO Users (name, email, authType, salt, hashedPWSalt) VALUES ("Evan", "evan@reichard.io", "Local", "1234", "1234");
INSERT INTO Users (name, email, authType, salt, hashedPWSalt) VALUES ("James", "james@example.com", "Local", "1234", "1234");
INSERT INTO Users (name, email, authType, salt, hashedPWSalt) VALUES ("Bill", "bill@example.com", "Local", "1234", "1234");
INSERT INTO MediaItems (userID, EXIFDate, uploadDate, latitude, longitude, mediaType, relPath) VALUES (1, "2012-03-29T10:05:45-06:00", "2012-03-29T10:05:45-06:00", "38.94141753254032", "-77.45238664604386", 0, "/image1.jpg");
INSERT INTO MediaItems (userID, EXIFDate, uploadDate, latitude, longitude, mediaType, relPath) VALUES (2, "2013-03-29T10:05:45-06:00", "2013-03-29T10:05:45-06:00", "38.94141753254032", "-77.45238664604386", 0, "/image2.jpg");
INSERT INTO MediaItems (userID, EXIFDate, uploadDate, latitude, longitude, mediaType, relPath) VALUES (3, "2014-03-29T10:05:45-06:00", "2014-03-29T10:05:45-06:00", "38.94141753254032", "-77.45238664604386", 0, "/image3.jpg");
INSERT INTO Tags (name) VALUES ("cars");
INSERT INTO Tags (name) VALUES ("dogs");
INSERT INTO Tags (name) VALUES ("places");
INSERT INTO Albums (userID, name) VALUES (1, "My Favorite Things");
INSERT INTO Albums (userID, name) VALUES (2, "Trip 2020");
INSERT INTO Albums (userID, name) VALUES (3, "Corona 2020");
INSERT INTO MediaTags (mediaID, tagID) VALUES (1, 3);
INSERT INTO MediaTags (mediaID, tagID) VALUES (2, 2);
INSERT INTO MediaTags (mediaID, tagID) VALUES (3, 1);
INSERT INTO MediaAlbums (mediaID, albumID) VALUES (1, 3);
INSERT INTO MediaAlbums (mediaID, albumID) VALUES (2, 2);
INSERT INTO MediaAlbums (mediaID, albumID) VALUES (3, 1);