Skip to content
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

Feature #313 - Add Statewide IDs #314

Merged
merged 2 commits into from
Jan 7, 2024
Merged

Feature #313 - Add Statewide IDs #314

merged 2 commits into from
Jan 7, 2024

Conversation

DMalone87
Copy link
Collaborator

Adds a StateID model as a child of the officer table. This allows the index to track statewide Officer IDs such as Tax ID or TCOLE PID numbers.

…index to track statewide Officer IDs such as Tax ID or TCOLE PID numbers.
class Officer(db.Model):
id = db.Column(db.Integer, primary_key=True) # officer id
first_name = db.Column(db.Text)
last_name = db.Column(db.Text)
race = db.Column(db.Text)
ethnicity = db.Column(db.Text)
gender = db.Column(db.Text)
# Note: rank at time of incident
Copy link
Collaborator Author

@DMalone87 DMalone87 Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rank and Star are removed since those are dependent on the Law Enforcement Agency the officer is employed by and are not unique to the officer in all cases. Those values can still be found in the association table for Officers and Agencies.

@DMalone87 DMalone87 linked an issue Jan 4, 2024 that may be closed by this pull request
@DMalone87 DMalone87 merged commit ce625a2 into main Jan 7, 2024
3 checks passed
@DMalone87 DMalone87 deleted the dmalone/stateid branch January 7, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Allow Statewide Officer IDs to be recorded in the Index.
2 participants