planting_site_notifications

0 rows


Description

Tracks which notifications have already been sent regarding planting sites.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id int8 19 null
planting_site_id int8 19 null
planting_sites.id planting_site_notifications_planting_site_id_fkeyC
notification_type_id int4 10 null
notification_types.id planting_site_notifications_notification_type_id_fkeyR
notification_number int4 10 null

Number of notifications of this type that have been sent, including this one. 1 for initial notification, 2 for reminder, 3 for second reminder, etc.

sent_time timestamptz 35,6 null

Indexes

Constraint Name Type Sort Column(s)
planting_site_notifications_pkey Primary key Asc id
planting_site_notifications_planting_site_id_notification_t_key Must be unique Asc/Asc/Asc planting_site_id + notification_type_id + notification_number

Relationships