-- Sample data for the PostgreSQL source. The postgres image runs this once, -- when its volume is first initialised. Replace it with your own dump, or -- delete the mount in compose.yaml and point the import at your database. CREATE TABLE customers ( id BIGINT PRIMARY KEY, email TEXT NOT NULL UNIQUE, name TEXT NOT NULL, vip BOOLEAN NOT NULL DEFAULT false, created_at TIMESTAMPTZ NOT NULL DEFAULT now() ); CREATE TABLE orders ( id BIGINT PRIMARY KEY, customer_id BIGINT NOT NULL REFERENCES customers (id), total NUMERIC(10, 2) NOT NULL, details JSONB NOT NULL ); INSERT INTO customers (id, email, name, vip) VALUES (1, 'ada@example.com', 'Ada Lovelace', true), (2, 'alan@example.com', 'Alan Turing', false), (3, 'grace@example.com', 'Grace Hopper', true); INSERT INTO orders (id, customer_id, total, details) VALUES (100, 1, 19.99, '{"items": 2, "channel": "web"}'), (101, 1, 5.00, '{"items": 1, "channel": "store"}'), (102, 3, 42.50, '{"items": 3, "channel": "web"}');