-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdbdiagram.txt
146 lines (129 loc) · 3.29 KB
/
dbdiagram.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
// Structure of tables for drawing diagram with dbdiagram.io
// https://dbdiagram.io/d/5dc7355fedf08a25543dba2f
// the [pk] is only used here to make the keys bold, they
// aren't always true primary keys
TABLE oca_index {
indexnumberid text [pk]
court text
fileddate date
propertytype text
classification text
specialtydesignationtypes "text[]"
status text
disposeddate date
disposedreason text
firstpaper text
primaryclaimtotal numeric
dateofjurydemand date
}
TABLE oca_causes {
indexnumberid text [pk]
causeofactiontype text
interestfromdate date
amount numeric
}
TABLE oca_addresses {
indexnumberid text [pk]
city text
state text
postalcode text
}
TABLE oca_parties {
indexnumberid text [pk]
role text
partytype text
representationtype text
undertenant text
}
TABLE oca_events {
indexnumberid text [pk]
eventname text
fileddate date
feetype text
filingpartiesroles "text[]"
answertype text
}
TABLE oca_appearances {
indexnumberid text [pk]
appearanceid bigserial [pk]
appearancedatetime timestamp
appearancepurpose text
appearancereason text
appearancepart text
motionsequence int
}
TABLE oca_appearance_outcomes {
indexnumberid text [pk]
appearanceid bigint [pk]
appearanceoutcometype text
outcomebasedontype text
}
TABLE oca_motions {
indexnumberid text [pk]
sequence int [pk]
motiontype text
primaryrelief text
fileddate date
filingpartiesroles "text[]"
motiondecision text
motiondecisiondate date
}
TABLE oca_decisions {
indexnumberid text [pk]
sequence int [pk]
resultof text
highlight text
}
TABLE oca_judgments {
indexnumberid text [pk]
sequence int [pk]
amendedfromjudgmentsequence int
judgmenttype text
fileddate date
entereddatetime timestamp
withpossession boolean
latestjudgmentstatus text
latestjudgmentstatusdate date
totaljudgmentamount numeric
creditorsroles "text[]"
debtorsroles "text[]"
}
TABLE oca_warrants {
indexnumberid text [pk]
judgmentsequence int [pk]
sequence text [pk]
createdreason text
ordereddate date
issuancetype text
issuancestayeddate date
issuancestayeddays int
issueddate date
executiontype text
executionstayeddate date
executionstayeddays int
marshalrequestdate date
marshalrequestrevieweddate date
enforcementagency text
enforcementofficerdocketnumber text
propertiesonwarrantcities "text[]"
propertiesonwarrantstates "text[]"
propertiesonwarrantpostalcodes "text[]"
amendeddate date
vacateddate date
adultprotectiveservicesnumber text
returneddate date
returnedreason text
executiondate date
}
Ref: oca_index.indexnumberid < oca_causes.indexnumberid
Ref: oca_index.indexnumberid < oca_addresses.indexnumberid
Ref: oca_index.indexnumberid < oca_parties.indexnumberid
Ref: oca_index.indexnumberid < oca_events.indexnumberid
Ref: oca_index.indexnumberid < oca_appearances.indexnumberid
Ref: oca_index.indexnumberid < oca_motions.indexnumberid
Ref: oca_index.indexnumberid < oca_decisions.indexnumberid
Ref: oca_index.indexnumberid < oca_judgments.indexnumberid
Ref: oca_appearances.indexnumberid < oca_appearance_outcomes.indexnumberid
Ref: oca_appearances.appearanceid < oca_appearance_outcomes.appearanceid
Ref: oca_judgments.indexnumberid < oca_warrants.indexnumberid
Ref: oca_judgments.sequence < oca_warrants.judgmentsequence