mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
feat(schema): add FIRMS adapter and CENTRAL_FIRE stream
Migration 005 seeds: - config.adapters row for firms (300s cadence, PNW bbox) - config.streams row for CENTRAL_FIRE (7d retention) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
025ccc6e62
commit
b42589c69c
1 changed files with 27 additions and 0 deletions
27
sql/migrations/005_add_firms_adapter.sql
Normal file
27
sql/migrations/005_add_firms_adapter.sql
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
-- Migration: 005_add_firms_adapter
|
||||
-- Seeds FIRMS adapter configuration and CENTRAL_FIRE stream.
|
||||
|
||||
-- Seed FIRMS adapter row
|
||||
INSERT INTO config.adapters (name, enabled, cadence_s, settings)
|
||||
VALUES (
|
||||
'firms',
|
||||
true,
|
||||
300,
|
||||
jsonb_build_object(
|
||||
'region', jsonb_build_object(
|
||||
'north', 49.5,
|
||||
'south', 31.0,
|
||||
'east', -102.0,
|
||||
'west', -124.5
|
||||
),
|
||||
'api_key_alias', 'firms',
|
||||
'satellites', jsonb_build_array(
|
||||
'VIIRS_SNPP_NRT',
|
||||
'VIIRS_NOAA20_NRT'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
-- Seed CENTRAL_FIRE stream row
|
||||
INSERT INTO config.streams (name, max_age_s, max_bytes)
|
||||
VALUES ('CENTRAL_FIRE', 604800, 1073741824);
|
||||
Loading…
Add table
Add a link
Reference in a new issue