Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
orosmatthew committed Nov 1, 2024
1 parent a6f0f07 commit fd718f4
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 168 deletions.
112 changes: 56 additions & 56 deletions process/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"devDependencies": {
"@eslint/js": "^9.13.0",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.8.2",
"typescript-eslint": "^8.12.1",
"@types/node": "^22.8.6",
"typescript-eslint": "^8.12.2",
"dotenv": "^16.4.5",
"esbuild": "^0.24.0",
"eslint": "^9.13.0",
Expand Down
15 changes: 3 additions & 12 deletions web/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ export const image = pgTable(
createdAt: timestamp('created_at', { mode: 'date' }).notNull(),
coordinates: geometry('coordinates', { type: 'point', mode: 'tuple', srid: 4326 }).notNull()
},
(table) => {
return {
coordinatesIndex: index().using('gist', table.coordinates)
};
}
(table) => [index().using('gist', table.coordinates)]
);

export const group = pgTable('group', {
Expand All @@ -64,10 +60,7 @@ export const analytics = pgTable(
date: timestamp('date', { mode: 'date' }).notNull(),
count: integer('count').notNull()
},
(table) => ({
dateIndex: index().on(table.date),
uniqueImageIdDate: unique().on(table.imageId, table.date)
})
(table) => [index().on(table.date), unique().on(table.imageId, table.date)]
);

export const imageGroupRelation = pgTable(
Expand All @@ -81,9 +74,7 @@ export const imageGroupRelation = pgTable(
.notNull()
.references(() => group.id, { onDelete: 'cascade' })
},
(table) => ({
uniqueImageIdGroupId: unique().on(table.imageId, table.groupId)
})
(table) => [unique().on(table.imageId, table.groupId)]
);

export const apiRole = pgEnum('apiRole', ['standard', 'admin']);
Expand Down
Loading

0 comments on commit fd718f4

Please sign in to comment.