bcgov / lcfs

An online application for fuel suppliers to manage their compliance obligations under the Low Carbon Fuels Act
Apache License 2.0
5 stars 3 forks source link

LCFS - Update Data Models for Document (File Submission) in LCFS FastAPI System #146

Open hamed-valiollahi opened 10 months ago

hamed-valiollahi commented 10 months ago

Description: Implement the optimized data model designed for File Submission related database tables in the LCFS FastAPI system.

Objective: Operationalize the file submission data model within the LCFS system using SQLAlchemy and Alembic. This ensures a robust and maintainable data layer for file submission functionality.

Acceptance Criteria: "Document" data models needs to be renamed to "File Submission".

Rename the following SQLAlchemy models corresponding to these database tables:

Remove the following SQLAlchemy models for these database tables (Foreign keys must also be removed):

Update the following fields in the SQLAlchemy models for these database tables:

The following changes for default statuses in the "File Submission Status" needs to be applied.

Apply the following changes to File Submission Categories:

Implement the following changes for File Submission Categories:

Additional Insights:

AlexZorkin commented 10 months ago

Hey team! Please add your planning poker estimate with Zenhub @jig-patel @prv-proton