Skip to content

Commit

Permalink
feature #6 - Add image url to product model and entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeniosales committed Oct 16, 2022
1 parent 38b5d1a commit f352724
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/1-domain/entities/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export interface Product {
promotionalPrice: number
rating: number
colors: string[]
imageUrl: string
currency: CurrencyEnum
}
4 changes: 4 additions & 0 deletions src/4-framework/models/dynamo/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ const schemaDefinition: SchemaDefinition = {
type: Array,
required: true
},
imageUrl: {
type: String,
required: true
},
currency: {
type: String,
required: true,
Expand Down

0 comments on commit f352724

Please sign in to comment.