diff --git a/prisma/mock/listings.mts b/prisma/mock/listings.mts index 3db96bd..df2f523 100644 --- a/prisma/mock/listings.mts +++ b/prisma/mock/listings.mts @@ -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, }, diff --git a/prisma/mock/public.mts b/prisma/mock/public.mts index fda07e7..bfe567d 100644 --- a/prisma/mock/public.mts +++ b/prisma/mock/public.mts @@ -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, diff --git a/prisma/schema-private.prisma b/prisma/schema-private.prisma index b2e4bb1..2f57c95 100644 --- a/prisma/schema-private.prisma +++ b/prisma/schema-private.prisma @@ -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 diff --git a/prisma/schema-public.prisma b/prisma/schema-public.prisma index 451d1ab..bb49ead 100644 --- a/prisma/schema-public.prisma +++ b/prisma/schema-public.prisma @@ -21,6 +21,7 @@ model PublicListings { location ILocation scheduledFor DateTime? @db.Date value Float? + images String[] taxonomies ITaxonomiesFacade[] reviews IReviewFacade[]