-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect user account methods to PG #298
Conversation
…date account schema
Thanks Chris! Can you elaborate on the PascalCase issue to jog my memory? Glad you spotted the shared third account challenge. If we want, I figured we could change owner to owners as a column on accounts and for users join accounts on owners inclusion rather than owner equality. Can discuss here or online. Let me know if you'd prefer a separate issue to work that out. |
Once we finalize the JSON Schema for For example, if the frontend decides to add a new field interface AccountWithSnapshotIndex {
Account: Account
SnapshotIndex?: []
} This would be like treating the original interface as generated code (we will do that soon) which we are only allowed to derive new types from it not mutate it. Only a JSON Schema change would be allowed to update that original interface. Great work @ccali11 |
@shanejearley - You have a method that formats PG return values to @shanejearley - And yes, I would like it if we could merge this PR and we could tackle the multiple |
@hawyar - Could use a quick huddle to better understand the finality of schema concept. Are you saying we have to freeze the schema at some point? I can understand if so (e.g., it affects your crawler and we wouldn't want to be constantly making changes to one and not the other sort of thing...). |
Great catch Chris, my mistake. We wanted to use the camelCase helper here. Nice that the parameterized queries don't require snakeCase on the other end. I think he means schema change = base types and interfaces change by codegen. Then we build custom types wherever we need that utilize the base from codegen. Live changing the schema during development is also doable so nothing is frozen. |
@hawyar do you have a diagram to add to the README? |
@ccali11 ready to merge. |
@shanejearley - Focused on connecting the following actions to PG and cleaning up code a bit (ongoing and iterative process):
Of note:
account
/ theaccounts
table prohibits that since that third/shared address would be a primary key on theaccounts
table. Can discuss more, but otherwise just know I'm still thinking through this.PascalCase
formatting you've suggested; we should briefly settle on how we'd like to represent property names in the code (and if they should be different in different areas of the code)