Providers
Table for storing external service providers with API keys and configuration per herd
| Column Name | Data Type | Constraints |
|---|---|---|
| id | bigint | NOT NULL |
| created_at | timestamp with time zone | DEFAULT now() NOT NULL |
| type | text | NOT NULL |
| key | text | |
| source | text | NOT NULL |
| herd_id | bigint | NOT NULL |
Security Policies (RLS)
This table has Row Level Security (RLS) enabled with the following policies:
- Read Access: Device API keys within same herd OR users with view role in same herd
- Create/Update/Delete: Users with edit role in same herd