-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update eclipse data model with advanced weather time. Add SQL definit…
…ion.
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/stories/solar-eclipse-2024/sql/create_eclipse_data_table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE TABLE SolarEclipse2024Data ( | ||
id int(11) UNSIGNED NOT NULL UNIQUE AUTO_INCREMENT, | ||
user_uuid varchar(36) NOT NULL UNIQUE, | ||
user_selected_locations JSON NOT NULL, | ||
user_selected_locations_count INT NOT NULL, | ||
cloud_cover_selected_locations JSON NOT NULL, | ||
cloud_cover_selected_locations_count INT NOT NULL, | ||
app_time_ms INT NOT NULL DEFAULT 0, | ||
info_time_ms INT NOT NULL DEFAULT 0, | ||
advanced_weather_time_ms INT NOT NULL DEFAULT 0, | ||
timestamp TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
|
||
PRIMARY KEY(id), | ||
INDEX(user_uuid) | ||
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci PACK_KEYS=0; |