Skip to content

Commit

Permalink
Verificate visit missions with location (#144)
Browse files Browse the repository at this point in the history
* Add verifications to db

* Visit verification

* Fix duplicate category

* Fix fix

* Fix fix

* Come on linter! Warn me about errors before pushing the commit...

* Fix opacity

* Use maxLocationDistance
  • Loading branch information
mauriciabad authored Nov 8, 2023
1 parent 1b148e7 commit 76f6fcf
Show file tree
Hide file tree
Showing 27 changed files with 1,502 additions and 337 deletions.
18 changes: 18 additions & 0 deletions drizzle/0011_dapper_la_nuit.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CREATE TABLE `verificationRequirement` (
`id` serial AUTO_INCREMENT NOT NULL,
`isLocationRequired` boolean NOT NULL DEFAULT true,
`maxLocationDistance` int,
CONSTRAINT `verificationRequirement_id` PRIMARY KEY(`id`)
);
--> statement-breakpoint
CREATE TABLE `verification` (
`id` serial AUTO_INCREMENT NOT NULL,
`placeId` int NOT NULL,
`userId` varchar(255) NOT NULL,
`validatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`deviceLocation` POINT SRID 25831,
`deviceLocationAccuracy` int,
CONSTRAINT `verification_id` PRIMARY KEY(`id`)
);
--> statement-breakpoint
ALTER TABLE `place` ADD `verificationRequirementsId` int;
Loading

0 comments on commit 76f6fcf

Please sign in to comment.