Comments (6)
FYI @mitchellwandrews @jonmelvin
I did a quick comparison between the IA:Intake Form fields, the IA:Profile Page fields and the designed intake form (in progress)
Mostly matches. Fields in the Intake Form exist in the Profile Page. Note, the design is missing the legal agreement fields, the electronic sig fields and implies that Clinics Attended have dates. So best to continue to go by the Info Architecture doc
from heart.
-- The client whose tickets are to be dismissed
-- Note 1: instead of checkboxes for status when actions are done, dates are to be entered; that way time taken can be tracked
-- Note 2: The field _ID is a unique integer key; the other _... fields are tracking fields for who edited and when, subject to modification
-- Note 3: The structure of this table is subject to change as we refine the work flow with Gina
-- Note 4: The fields [Picture], [_file_Picture], and [type_Picture] are specific to the CSharp framework - they trigger generation of file upload controls for,
-- in this case, a photo of the user
CREATE TABLE [dbo].[Client](
[_ID] [int] NOT NULL,
[ID] varchar NULL,
[Date_Record_Created] [datetime] NULL,
[First_Name] varchar NULL,
[Middle_Name] varchar NULL,
[Last_Name] varchar NULL,
[Drive's License] varchar NULL,
[SSN] varchar NULL,
[Date_of_Birth] [datetime] NULL,
[AKA_1] varchar NULL,
[AKA_2] varchar NULL,
[AKA_3] varchar NULL,
[Phone_1] varchar NULL,
[Phone_2] varchar NULL,
[Email_1] varchar NULL,
[Email_2] varchar NULL,
[Clinic_Attended] varchar NULL,
[Date Closed - No Obligation Form] [datetime] NULL,
[Date Closed - Client has Warrant] [datetime] NULL,
[Date Closed - Client has no Tickets] varchar NULL,
[Date Obligation Form Completed] varchar NULL,
[Date Waiting for background check] varchar NULL,
[Date of Attorney Review] [datetime] NULL,
[Date Sent to Court] [datetime] NULL,
[Date Received from Court] [datetime] NULL,
[Date Report Sent to Client] [datetime] NULL,
[Date Closed - Complete] [datetime] NULL,
[Picture] [image] NULL,
[_file_Picture] varchar NULL,
[_type_Picture] varchar NULL,
[_User] varchar NULL,
[_ModifyUser] varchar NULL,
[_CreateDate] [datetime] NULL,
[_ModifyDate] [datetime] NULL
)
-- One or more citations per client (CLIENT_ID is foreign key into [CLIENT].[ID] - this is many to one related to client)
CREATE TABLE [dbo].[Citation_](
[_ID] [int] NOT NULL,
[Client_ID] varchar NULL,
[ID] varchar NULL,
[Citation_Number] varchar NULL,
[Court_Code] varchar NULL,
[Violation_Number] varchar NULL,
[Citation_Status] varchar NULL,
[_User] varchar NULL,
[_ModifyUser] varchar NULL,
[_CreateDate] [datetime] NULL,
[_ModifyDate] [datetime] NULL
)
-- One or more services carried out by the client to dismiss citations (CLIENT_ID is foreign key into [CLIENT].[ID] - this is many to one related to client)
CREATE TABLE [dbo].[Service_](
[_ID] [int] NOT NULL,
[Client_ID] varchar NULL,
[ID] varchar NULL,
[Service] varchar NULL,
[Date_Completed] [datetime] NULL,
[Notes] varchar NULL,
[_User] varchar NULL,
[_ModifyUser] varchar NULL,
[_CreateDate] [datetime] NULL,
[_ModifyDate] [datetime] NULL)
-- database admins and users
CREATE TABLE [dbo].[User_](
[ID] [int] NOT NULL,
[Username] varchar NULL,
[Password_] varchar NULL,
[Confirm_Password] varchar NULL,
[Disable__select_] char NULL,
[Group__lookup_] varchar NULL,
[First_Name] varchar NULL,
[Middle_Name] varchar NULL,
[Last_Name] varchar NULL,
[Phone_1] varchar NULL,
[Phone_2] varchar NULL,
[Number_] varchar NULL,
[Street_] varchar NULL,
[Apartment_Number] varchar NULL,
[City_] varchar NULL,
[State_] char NULL,
[Zipcode_] varchar NULL,
[Email_1] varchar NULL,
[Email_2] varchar NULL,
[Notes_] varchar NULL,
[Picture] [image] NULL,
[_file_Picture] varchar NULL,
[_type_Picture] varchar NULL,
[_User] varchar NULL,
[_ModifyUser] varchar NULL,
[_CreateDate] [datetime] NULL,
[_ModifyDate] [datetime] NULL,
)
-- other planned tables: Citation codes, Service descriptions, Clinics attended, Court document templates to merge (these last items can also
-- just be files residing in the server folder)
from heart.
👍 I look forward to hearing your thoughts on Monday. I'll study it a bit this weekend.
https://dataedo.com/kb/tools/ssms/create-database-diagram seems to say it's possible to generate a prettier version of the db schema so it's easier to see relationships
from heart.
Diagram from SQLServer management studio for the tables (does not include the update for having the picture in the client table - see text doc above for that).
from heart.
We discussed the database during hacknight and an updated version of the schema is in progress
from heart.
Addressed in #32
from heart.
Related Issues (20)
- Add useFetch hook to all api calls in components
- Login Form (Replace regular form html with Formik ) HOT 1
- Edit Obligation Workflow HOT 3
- Replace yes/no buttons on intake form with checkboxes aligned to left of label
- Login Page: Add forgot password & signup functionality
- Add default sorting to Participants List
- Use material UI inline styling for intake form
- Database character length of DB fields HOT 1
- Allow user to create a participant from intake form
- Add columns to Participant Table for Intake Form HOT 2
- Add Case Closed Reason to database
- Add Clinic Date field to DB
- Add Clinic Date functionality
- Extend seed data to use new fields
- Audit data types used for participant fields HOT 3
- Fill in Xs in intake form
- Intake form: Health Resources do not appear in Programs Participated In
- Intake fields not displayed / editable on Participant view
- Contact Issue HOT 1
- Response links on https://www.lacityattorney.org/homelessness redirect to itself
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heart.