appeals
Колонки
| Колонка |
Тип |
Nullable |
Default |
Описание |
| id 🔑 |
integer(32) |
NOT NULL |
nextval('appeals_id_seq'::r... |
|
| created_at |
timestamp with time zone |
NULL |
now() |
|
| source_id |
integer(32) |
NOT NULL |
|
→ sources(id) |
| transcription |
text |
NULL |
|
|
| content |
text |
NOT NULL |
|
|
| appeal_type_id |
integer(32) |
NOT NULL |
|
→ cls_appeal_types(id) |
| category_id |
integer(32) |
NOT NULL |
|
→ cls_categories(id) |
| subcategory_id |
integer(32) |
NULL |
|
→ cls_subcategories(id) |
| priority |
character varying(50) |
NULL |
|
|
| operator_region_id |
integer(32) |
NOT NULL |
|
|
| operator_organization_id |
integer(32) |
NOT NULL |
|
|
| region_id |
integer(32) |
NOT NULL |
|
|
| organization_id |
integer(32) |
NOT NULL |
|
|
| applicant_id |
integer(32) |
NOT NULL |
|
→ persons(id) |
| applicant_is_patient |
boolean |
NULL |
|
|
| patient_id |
integer(32) |
NULL |
|
→ persons(id) |
| short_description |
text |
NULL |
|
|
| response_method_id |
integer(32) |
NULL |
|
→ response_methods(id) |
🔑 = Primary Key, → = Foreign Key
Индексы
| Имя |
Определение |
| appeals_pkey |
CREATE UNIQUE INDEX appeals_pkey ON public.appeals USING btree (id) |
| ix_appeals_id |
CREATE INDEX ix_appeals_id ON public.appeals USING btree (id) |
Foreign Keys
Используется в