You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We may want to update the Prisma schema of the NextJS app with the tables necessary to store measurements, variables, units, reminders, etc. instead of solely depending on the API to store this data.
We may want to update the Prisma schema of the NextJS app with the tables necessary to store measurements, variables, units, reminders, etc. instead of solely depending on the API to store this data.
Schema to Update
Here's the NextJS Prisma Postgres schema to update
https://github.com/FDA-AI/FDAi/blob/eb480b9e50318efeebd30bff6a81b984adace994/apps/nextjs/prisma/schema.prisma
Reference Table Definitions
For reference to the tables we need to add, there's a MySQL Prisma Schema and some SQL files
FDAi/apps/api-gateway/prisma/schema.prisma
Lines 1396 to 1449 in d441d67
The problem with that schema is that there are a lot of tables that aren't absolutely necessary and complexity to the project
FDAi/apps/dfda-1/database/ddl/quantimodo_test/measurements.sql
Lines 3 to 55 in 6055dce
Comments
It would probably be nice to have comments from those SQL files in the Prisma schema
https://www.prisma.io/docs/orm/prisma-schema/overview
Approach
You can probably paste the existing necessary tables from the SQL files into Claude and have it convert the table and its comments to a Postgres Prisma-compatible version and then paste it in
https://github.com/FDA-AI/FDAi/blob/eb480b9e50318efeebd30bff6a81b984adace994/apps/nextjs/prisma/schema.prisma
The text was updated successfully, but these errors were encountered: