In the sample code below I am reading and writing ProductRecord model objects to PostgreSQL using a custom DataStore.
However it is unclear to me how I can set this up such that I am able to also write other model object types to the same custom DataStore.
Currently the ProductPostgresSnapshot is specific to the ProductRecord and the PostgresSwiftDataStore Snapshot refers to this ProductPostgresSnapshot.
Any idea how I would change this to accommodate different model object types such as SupplierRecord ?
Full console program shown below.