Evaluate data model #31

Open
opened 2024-11-10 15:57:01 -05:00 by amigan · 5 comments
Owner

Maybe p25 talkgroups should have a layer of indirection (kind of like sdrtrunk aliases) and not use the P25 IDs as their record IDs.

Maybe p25 talkgroups should have a layer of indirection (kind of like sdrtrunk aliases) and not use the P25 IDs as their record IDs.
amigan added the
Kind/Enhancement
label 2024-11-10 15:57:27 -05:00
Author
Owner

Thinking:

  • talkgroups table as now (without tgid and sys, just using uuid or serial as PK)
  • mapping table of p25 sys:tg to talkgroups many-to-one
Thinking: * talkgroups table as now (without tgid and sys, just using uuid or serial as PK) * mapping table of p25 sys:tg to talkgroups many-to-one
Author
Owner

This is half-done as of #25. Still need to figure out foreign key constraints that can map either to learned or actual talkgroups.

This is half-done as of #25. Still need to figure out foreign key constraints that can map either to learned or actual talkgroups.
Author
Owner

To do in callsnormalize branch:

  • Change monster UNION learned queries to do JOIN with learned table.
  • Change to repository pattern
To do in callsnormalize branch: - [x] Change monster `UNION` learned queries to do `JOIN` with learned table. - [ ] Change to repository pattern
Author
Owner

All that is left:

  • Repository pattern
  • Add ways to learn talkgroups (move out of learned, update talkgroups table with all fields and learned = false)
All that is left: - [ ] Repository pattern - [ ] Add ways to learn talkgroups (move out of learned, update talkgroups table with all fields and learned = false)
Author
Owner

Collapse learned and talkgroups tables, add talkgroups versions table, simplify queries

Collapse learned and talkgroups tables, add talkgroups versions table, simplify queries
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: amigan/stillbox#31
No description provided.