Create database models
Create models for storing data in the database.
In this section
Create the Django models for storing data in the database
Creating the database models
We're going to create a Work model and an Expression model. Both models are uniquely identified by their respective FRBR URIs.
We'll store all the raw metadata in a single metadata
JSON field. We'll also extract certain fields from that metadata and store that information separately, so we can query it more easily.
Last updated