companies_notes

-1 rows


Description

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

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id int4 10 null
companies_notes_amomail_message.note_id companies_notes_amomail_message_note_id_fkey R
companies_notes_attachment.note_id companies_notes_attachment_note_id_fkey R
companies_notes_call_in.note_id companies_notes_call_in_note_id_fkey R
companies_notes_call_out.note_id companies_notes_call_out_note_id_fkey R
companies_notes_common.note_id companies_notes_common_note_id_fkey R
companies_notes_extended_service_message.note_id companies_notes_extended_service_message_note_id_fkey R
companies_notes_geolocation.note_id companies_notes_geolocation_note_id_fkey R
companies_notes_link_followed.note_id companies_notes_link_followed_note_id_fkey R
companies_notes_message_cashier.note_id companies_notes_message_cashier_note_id_fkey R
companies_notes_service_message.note_id companies_notes_service_message_note_id_fkey R
companies_notes_sms_in.note_id companies_notes_sms_in_note_id_fkey R
companies_notes_sms_out.note_id companies_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 companies_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)
companies_notes_pkey Primary key Asc id

Check Constraints

Constraint Name Constraint
companies_notes_id_check ((id > 0))
companies_notes_created_by_check ((created_by >= 0))
companies_notes_responsible_user_id_check ((responsible_user_id >= 0))
companies_notes_updated_by_check ((updated_by >= 0))

Relationships