Skip to content

Commit

Permalink
ar(feat) [DPCP-40]: Parse Services.
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 25, 2024
1 parent 8e189ff commit 73780e0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion prisma/mock/listings.mts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@ export const createMockListing = ({ community, user, communityFavorited, favorit
title: {
es: 'INTERNAL aud',
},
images: [
faker.image.urlLoremFlickr({ category: 'crypto' }),
faker.image.urlLoremFlickr({ category: 'crypto' }),
faker.image.urlLoremFlickr({ category: 'crypto' }),
],
description: {
es: 'Lorem ipsum dolor sit amet consectetur',
},
status: 'ACTIVE',
location: mockLocation,
location: mockLocation(),
favorited: {
connect: favorited,
},
Expand Down
5 changes: 5 additions & 0 deletions prisma/mock/public.mts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ export const createMockPubListing = ({
userCreator: user,
communityCreator: community,
communityOwner: community,
images: [
faker.image.urlLoremFlickr({ category: 'crypto' }),
faker.image.urlLoremFlickr({ category: 'crypto' }),
faker.image.urlLoremFlickr({ category: 'crypto' }),
],
title: {
en: faker.airline.airplane().name,
it: faker.airline.airplane().name,
Expand Down
1 change: 1 addition & 0 deletions prisma/schema-private.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ model Listings {
location ILocation
scheduledFor DateTime? @db.Date
value Float?
images String[]
taxonomies Taxonomies[] @relation("listingTaxonomies", fields: [taxonomiesIds], references: [id])
taxonomiesIds String[] @db.ObjectId
Expand Down
1 change: 1 addition & 0 deletions prisma/schema-public.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ model PublicListings {
location ILocation
scheduledFor DateTime? @db.Date
value Float?
images String[]
taxonomies ITaxonomiesFacade[]
reviews IReviewFacade[]
Expand Down

0 comments on commit 73780e0

Please sign in to comment.