Skip to content

Commit

Permalink
MODTLR-5 add itemId to schema, make some fields required
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-barannyk committed Jan 18, 2024
1 parent f7f2b40 commit 315f38b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/folio/domain/entity/EcsTlrEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ public class EcsTlrEntity {
private String patronComments;
private String fulfillmentPreference;
private UUID pickupServicePointId;
private UUID itemId;
}
1 change: 1 addition & 0 deletions src/main/resources/db/changelog/changes/initial_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<column name="patron_comments" type="varchar(255)"/>
<column name="fulfillment_preference" type="varchar(255)"/>
<column name="pickup_service_point_id" type="uuid"/>
<column name="item_id" type="uuid"/>
<column name="created_date" type="timestamp without time zone" defaultValueComputed="now()">
<constraints nullable="false"/>
</column>
Expand Down
9 changes: 9 additions & 0 deletions src/main/resources/swagger.api/schemas/EcsTlr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,12 @@ EcsTlr:
pickupServicePointId:
description: "The ID of the Service Point where this request can be picked up"
$ref: "uuid.yaml"
itemId:
description: "ID of the item being requested"
$ref: "uuid.yaml"
required:
- instanceId
- requesterId
- requestType
- requestLevel
- fulfillmentPreference

0 comments on commit 315f38b

Please sign in to comment.