DB schemas rewrite #136
Owner
- Rename tables' names and columns to English
- Use snake_case on columns
- Match the name of the columns with the name of the model's fields
- Use Embed instead of a huge string for the creation of tables
- Use named params instead of question marks in queries
- Some models fields can be NULL, make them a pointer
- Verify that a fallback text exists whenever a query with multiple results(row) could possible return an empty slice(sql.ErrNoRows)
- Rename DB Office Expenses to Quota Expenses
- Make all dates that are of a custom date type be a pointer(NULLABLE) or else the sync will work but the rendering might break if they change a date that was an empty string like "0000-00-00" to "". Do it specially on the storage and model layers, they need to match.
- [ ] Rename tables' names and columns to English
- [ ] Use snake_case on columns
- [ ] Match the name of the columns with the name of the model's fields
- [ ] Use Embed instead of a huge string for the creation of tables
- [ ] Use named params instead of question marks in queries
- [ ] Some models fields can be NULL, make them a pointer
- [ ] Verify that a fallback text exists whenever a query with multiple results(row) could possible return an empty slice(sql.ErrNoRows)
- [ ] Rename DB Office Expenses to Quota Expenses
- [ ] Make all dates that are of a custom date type be a pointer(NULLABLE) or else the sync will work but the rendering might break if they change a date that was an empty string like "0000-00-00" to "". Do it specially on the storage and model layers, they need to match.
Priority
High
label
Labels
No labels
Agent/Chrome-Android
Agent/Chrome-Desktop
Agent/Chrome-iOS
Agent/Firefox-Android
Agent/Firefox-Desktop
Agent/Firefox-iOS
Agent/Safari-Desktop
Agent/Safari-iOS
Code/Backend
Code/DB
Code/DevOps
Code/Frontend
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
overdrives/chambersbr#136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?