An open-source platform to demonstrate the capabilities of a Granular Certificate registry that conforms to the EnergyTag Standards and API specification.
Refactors entities and adds some additional attributes. Will need a rebuild with latest migration for update of user table.
Closes #55 by folding organisation into user as a str attribute rather than as a distinct entitiy for simplicity (also closes #38 by extension)
Closes #28
Closes #47 by setting the __tablename__ attr on User to registry_user to prevent overriding postgres reserved keyword 'user' table
Closes #39 by setting the bundle issuance_id to a concatenation of the device ID, energy carrier, and production starting interval. This ID is informative, human-readable, and is ensured to be unique across the issuance registry and any other registry the bundle may be exported to.
Closes #54
Has This Been Tested?
[ ] Yes
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration
Checklist:
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked my code and corrected any misspellings
Description
Refactors entities and adds some additional attributes. Will need a rebuild with latest migration for update of
user
table.organisation
intouser
as astr
attribute rather than as a distinct entitiy for simplicity (also closes #38 by extension)__tablename__
attr onUser
toregistry_user
to prevent overriding postgres reserved keyword 'user' tableissuance_id
to a concatenation of the device ID, energy carrier, and production starting interval. This ID is informative, human-readable, and is ensured to be unique across the issuance registry and any other registry the bundle may be exported to.Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: