Skip to content

Commit

Permalink
Add reference to cost table
Browse files Browse the repository at this point in the history
  • Loading branch information
thokra-nav committed Feb 19, 2024
1 parent c3da565 commit 9629bcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/database/migrations/0001_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ CREATE TABLE audit_logs (
CREATE TABLE cost (
id serial PRIMARY KEY,
environment text,
team_slug slug,
team_slug slug REFERENCES teams(slug) ON DELETE CASCADE,
app text NOT NULL,
cost_type text NOT NULL,
date date NOT NULL,
Expand Down Expand Up @@ -340,4 +340,4 @@ ALTER TABLE vulnerability_metrics
-- triggers
CREATE TRIGGER reconciler_states_set_updated BEFORE
UPDATE
ON reconciler_states FOR EACH ROW EXECUTE PROCEDURE set_updated_at();
ON reconciler_states FOR EACH ROW EXECUTE PROCEDURE set_updated_at();

0 comments on commit 9629bcc

Please sign in to comment.