ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/missionmatch / db/queries/opportunities.sql

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/missionmatch / db/queries/opportunities.sql
DateNot specified in source
RepositoryJanady13/missionmatch
Revision39df94f92b2a33f852481fe1954dabed841524bb
Branchw0-aedt-compliance
Path or archive memberdb/queries/opportunities.sql
Original SHA-2563c7a4a5424f7c380d3493782ba90dced2c1dee60a19a4cf3f32a9c130910c28a
Git blob SHA65ac363b5bc14db5731d5dce14a5040514c70804
Reading-copy SHA-2563c7a4a5424f7c380d3493782ba90dced2c1dee60a19a4cf3f32a9c130910c28a

Original source ↗

Recovered source transcript

-- name: CreateOpportunity :one INSERT INTO opportunities (organization_id, name, solicitation_number, customer_agency, due_date, status) VALUES ($1,$2,$3,$4,$5,$6) RETURNING *; -- name: GetOpportunity :one SELECT * FROM opportunities WHERE id = $1; -- name: ListOpportunities :many SELECT * FROM opportunities ORDER BY created_at DESC LIMIT $1 OFFSET $2; -- name: ListRequirementsForOpportunity :many SELECT * FROM requirements WHERE opportunity_id = $1 AND deleted_at IS NULL ORDER BY created_at DESC; -- name: ProposalReadiness :many -- Band/decision rollup across every slate member under one opportunity's requirements — the source -- for GET /proposal-readiness [review COMPL-2]. RLS scopes all three tables to the caller's org. SELECT sm.band, sm.decision, COUNT(*) AS n FROM requirements r JOIN slates s ON s.requirement_id = r.id JOIN slate_members sm ON sm.slate_id = s.id WHERE r.opportunity_id = $1 GROUP BY sm.band, sm.decision ORDER BY sm.band, sm.decision;

Search equations, builds, manuscript text, and recovered sources.