contacts_notes

-1 rows


Description

Таблица примечаний контактов

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id int4 10 null
contacts_notes_amomail_message.note_id contacts_notes_amomail_message_note_id_fkey R
contacts_notes_attachment.note_id contacts_notes_attachment_note_id_fkey R
contacts_notes_call_in.note_id contacts_notes_call_in_note_id_fkey R
contacts_notes_call_out.note_id contacts_notes_call_out_note_id_fkey R
contacts_notes_common.note_id contacts_notes_common_note_id_fkey R
contacts_notes_extended_service_message.note_id contacts_notes_extended_service_message_note_id_fkey R
contacts_notes_geolocation.note_id contacts_notes_geolocation_note_id_fkey R
contacts_notes_link_followed.note_id contacts_notes_link_followed_note_id_fkey R
contacts_notes_message_cashier.note_id contacts_notes_message_cashier_note_id_fkey R
contacts_notes_service_message.note_id contacts_notes_service_message_note_id_fkey R
contacts_notes_sms_in.note_id contacts_notes_sms_in_note_id_fkey R
contacts_notes_sms_out.note_id contacts_notes_sms_out_note_id_fkey R

id примечания

entity_id int4 10 null

id привязанного контакта

responsible_user_id int4 10 null

id ответственного за примечание

note_type int2 5 null
notes_types.id contacts_notes_note_type_fkey R

id типа примечания

created_at timestamp 29,6 null

Дата создания примечания

updated_at timestamp 29,6 null

Дата изменения примечания

created_by int4 10 null

id пользователя, который создал примечание

updated_by int4 10 null

id пользователя, который изменил примечание

Indexes

Constraint Name Type Sort Column(s)
contacts_notes_pkey Primary key Asc id

Check Constraints

Constraint Name Constraint
contacts_notes_created_by_check ((created_by >= 0))
contacts_notes_responsible_user_id_check ((responsible_user_id >= 0))
contacts_notes_id_check ((id > 0))
contacts_notes_updated_by_check ((updated_by >= 0))

Relationships