Columns
| Column | Description | API Field Name |
|---|---|---|
subscription_id | Primary key and subscription unique identifier. | id |
created | The timestamp when the subscription record was created. | |
modified | The timestamp when the subscription record was last modified. | |
is_deleted | Indicates whether the subscription record is deleted. | |
clinic_id | Foreign key to the clinic & clinic_enriched table. The identifier of the clinic associated with the subscription. | clinic_id |
clinic_client_id | Foreign key to the client & client_enriched table. The identifier of the client associated with the subscription. | clinic_client_id |
clinic_patient_id | Foreign key to the patient & client_enriched table. The identifier of the patient associated with the subscription. | clinic_patient_id |
item_id | Foreign key to the item & item_enriched table. The identifier of the catalog item associated with the subscription. | item_id |
quantity | The quantity of the item ordered per subscription interval. | quantity |
interval_unit | The unit of time for the subscription interval (e.g., DAY, WEEK, MONTH, YEAR). | interval_unit |
frequency | The frequency of the subscription orders within the interval unit. | frequency |
status | The current status of the subscription. | status |
status_changed | The timestamp when the subscription’s status was last updated. | status_changed |
last_order_date | The date the most recent order was placed for this subscription. | last_order_date |
next_order_date | The date the next order is scheduled for this subscription. | next_order_date |
is_imported | Indicates whether the subscription was imported from a legacy PIMS system (derived from external_id). | is_imported |
last_updated | The timestamp when the subscription record was last updated in the source table. This is the most recent timestamp from all related tables. | |
vetcove_corporate_id | The unique identifier of the corporate group associated with this record. |
Relationships
SQL Definition
View SQL
View SQL