-- Seed data for the Approval Workflow schema, from section 14 of the blueprint. Load after approval-workflow.sql. -- Seven people. The manager chain and the admin flag are from the spec's people table. -- The spec gives names only, so the ids and example.com addresses are the ones the site's reference build uses. INSERT INTO people (id, name, email, manager_id, is_admin, active) VALUES ('p_dana', 'Dana Ruiz', 'dana@example.com', NULL, TRUE, TRUE), ('p_ana', 'Ana Lima', 'ana@example.com', 'p_dana', TRUE, TRUE), ('p_maya', 'Maya Chen', 'maya@example.com', 'p_dana', FALSE, TRUE), ('p_sam', 'Sam Okafor', 'sam@example.com', 'p_dana', FALSE, TRUE), ('p_ben', 'Ben Cho', 'ben@example.com', 'p_sam', FALSE, TRUE), ('p_jo', 'Jo Park', 'jo@example.com', 'p_maya', FALSE, TRUE), ('p_lee', 'Lee Park', 'lee@example.com', 'p_sam', FALSE, TRUE); -- Three routing rules. Minimums are in cents: $0, $1,000 and $10,000. INSERT INTO rules (id, name, approver_id, min_amount_cents, category, position, active) VALUES ('r_it', 'IT', 'p_ben', 0, 'Software', 1, TRUE), ('r_fin', 'Finance', 'p_ana', 100000, NULL, 2, TRUE), ('r_exec', 'Executive', 'p_dana', 1000000, NULL, 3, TRUE);