Skip to content

Commit

Permalink
Update model and SQL definition to include advanced weather location …
Browse files Browse the repository at this point in the history
…count.
  • Loading branch information
Carifio24 committed Mar 25, 2024
1 parent ccf7543 commit f19f8a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/stories/solar-eclipse-2024/models/eclipse_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export class SolarEclipse2024Data extends Model<InferAttributes<SolarEclipse2024
declare cloud_cover_selected_locations_count: number;
declare text_search_selected_locations: [number, number][];
declare text_search_selected_locations_count: number;
declare advanced_weather_selected_locations_count: number;
declare info_time_ms: CreationOptional<number>;
declare app_time_ms: CreationOptional<number>;
declare advanced_weather_time_ms: CreationOptional<number>;
Expand Down Expand Up @@ -55,6 +56,10 @@ export function initializeSolarEclipse2024DataModel(sequelize: Sequelize) {
type: DataTypes.INTEGER,
allowNull: false
},
advanced_weather_selected_locations_count: {
type: DataTypes.INTEGER,
allowNull: false
},
info_time_ms: {
type: DataTypes.INTEGER,
allowNull: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CREATE TABLE SolarEclipse2024Data (
cloud_cover_selected_locations_count INT NOT NULL,
text_search_selected_locations JSON NOT NULL,
text_search_selected_locations_count INT NOT NULL,
advanced_weather_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,
Expand Down

0 comments on commit f19f8a4

Please sign in to comment.