Initial HerbAPI implementation
Rust/Axum REST API (herbapi-api) with PostgreSQL, S3/Garage, OIDC auth. Dioxus 0.7 WASM frontend (herbapi-ui) with sidebar layout and botanical reference style. 9 SQL migrations covering families, species, cultivars, suppliers, companions, images, users, API tokens.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE scrape_log (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
source_name TEXT NOT NULL,
|
||||
entity_type TEXT NOT NULL,
|
||||
entity_id UUID NOT NULL,
|
||||
source_url TEXT NOT NULL,
|
||||
last_scraped_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
raw_data JSONB
|
||||
);
|
||||
|
||||
CREATE INDEX idx_scrape_entity ON scrape_log(entity_type, entity_id);
|
||||
CREATE INDEX idx_scrape_source ON scrape_log(source_name);
|
||||
Reference in New Issue
Block a user