Skip to content

Commit fca1031

Browse files
authored
Merge pull request #4 from SOS-RS/feat/verified
feat: verified shelter
2 parents be161a8 + 81eee0d commit fca1031

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- AlterTable
2+
ALTER TABLE "shelters" ADD COLUMN "verified" BOOLEAN NOT NULL DEFAULT false;

prisma/schema.prisma

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ model Shelter {
9393
prioritySum Int @default(value: 0) @map("priority_sum")
9494
latitude Float?
9595
longitude Float?
96+
verified Boolean @default(value: false)
9697
createdAt String @map("created_at") @db.VarChar(32)
9798
updatedAt String? @map("updated_at") @db.VarChar(32)
9899

src/shelter/shelter.service.ts

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export class ShelterService {
7070
prioritySum: true,
7171
latitude: true,
7272
longitude: true,
73+
verified: true,
7374
shelterSupplies: {
7475
select: {
7576
priority: true,
@@ -114,6 +115,7 @@ export class ShelterService {
114115
petFriendly: true,
115116
shelteredPeople: true,
116117
prioritySum: true,
118+
verified: true,
117119
latitude: true,
118120
longitude: true,
119121
createdAt: true,

0 commit comments

Comments
 (0)