Skip to content

Commit

Permalink
Store visit missions progress in DB (#141)
Browse files Browse the repository at this point in the history
* More margin in accuracy

* Fix max-zoom

* Create db schema for visits

* initializeUserInDatabase but not tested

* Fix not compiling

* Create custom adapter

* Add image and name when logging in with google

* Add or nulls

* Display visited and refactor extracting useLocationValidator

* Handle cases where user has already done a mission

* Remove duplicate places in missions when they where in mainPlaces but also in places

* Fix small things

* chore: Auto-fix lint errors

* Swap labels

* Add test but skipped
  • Loading branch information
mauriciabad authored Nov 7, 2023
1 parent 93ffb39 commit 1b148e7
Show file tree
Hide file tree
Showing 27 changed files with 1,484 additions and 305 deletions.
14 changes: 14 additions & 0 deletions drizzle/0010_fixed_mongoose.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CREATE TABLE `placeListToPlace` (
`placeListId` int NOT NULL,
`placeId` int NOT NULL,
`addedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT `placeListToPlace_placeId_placeListId` PRIMARY KEY(`placeId`,`placeListId`)
);
--> statement-breakpoint
CREATE TABLE `placeList` (
`id` serial AUTO_INCREMENT NOT NULL,
`userId` varchar(255) NOT NULL,
CONSTRAINT `placeList_id` PRIMARY KEY(`id`)
);
--> statement-breakpoint
ALTER TABLE `user` ADD `visitedPlaceListId` int NOT NULL;
Loading

0 comments on commit 1b148e7

Please sign in to comment.