bcgov / reserve-rec-api

For the Parks and Recreation Digital Transformation project.
Apache License 2.0
1 stars 3 forks source link

Adding Data Register sync for protected areas #19

Closed cameronpettit closed 2 months ago

cameronpettit commented 2 months ago

Similar to DUP and A&R, this script pulls the list of established names from the Data Register every night and updates the PRDT database accordingly. If a protected area doesn't already exist, it will be created with a few basic fields:

pk: protectedArea
sk: <orcs>
orcs: <orcs>
creationDate: <timestamp>
lastUpdated: <timestamp>