Spaces:
Running
Running
create a table called api call results
Browse files- 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 |
);
|