JamesyKim commited on
Commit
6d4ae82
·
1 Parent(s): 7b129e2

create a table called api call results

Browse files
Files changed (1) hide show
  1. schema.sql +9 -0
schema.sql CHANGED
@@ -15,4 +15,13 @@ CREATE TABLE api_configurations (
15
  schedule_interval_minutes INTEGER,
16
  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
17
  validated_at TIMESTAMP
 
 
 
 
 
 
 
 
 
18
  );
 
15
  schedule_interval_minutes INTEGER,
16
  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
17
  validated_at TIMESTAMP
18
+ );
19
+
20
+ CREATE TABLE api_call_results (
21
+ id SERIAL PRIMARY KEY,
22
+ config_id INTEGER REFERENCES api_configurations(id) ON DELETE CASCADE,
23
+ response_data JSONB,
24
+ is_successful BOOLEAN,
25
+ error_message TEXT,
26
+ called_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
27
  );