-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
320 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
-- See https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/mergetree#table_engine-mergetree-creating-a-table | ||
CREATE TABLE error_logs | ||
( | ||
id UUID, | ||
project UUID, | ||
environment String, | ||
level String, | ||
title String, | ||
status UInt8, | ||
platform Nullable(String), | ||
language Nullable(String), | ||
payload String, | ||
timestamp DateTime | ||
) Engine = MergeTree() | ||
ORDER BY (id, timestamp) | ||
TTL timestamp + INTERVAL 3 MONTH | ||
DELETE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE IF NOT EXISTS project | ||
( | ||
id UUID PRIMARY KEY, | ||
name VARCHAR(255) NOT NULL, | ||
repository_url TEXT NOT NULL, | ||
created_at TIMESTAMP NOT NULL DEFAULT NOW(), | ||
created_by UUID NOT NULL, | ||
updated_at TIMESTAMP NOT NULL DEFAULT NOW(), | ||
updated_by UUID NOT NULL | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
CREATE TABLE human_users | ||
( | ||
id UUID PRIMARY KEY, | ||
github_id INTEGER NOT NULL, | ||
github_node_id VARCHAR(255) NOT NULL, | ||
username VARCHAR(255) NOT NULL, | ||
name VARCHAR(255) NOT NULL, | ||
avatar_url TEXT DEFAULT NULL, | ||
profile_url TEXT NOT NULL, | ||
created_at TIMESTAMP NOT NULL DEFAULT NOW(), | ||
created_by UUID NOT NULL, | ||
updated_at TIMESTAMP NOT NULL DEFAULT NOW(), | ||
updated_by UUID NOT NULL | ||
); | ||
|
||
CREATE UNIQUE INDEX human_users_github_id_unique ON human_users (github_id); | ||
|
||
CREATE INDEX human_users_username_search ON human_users (username NULLS LAST); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 3 additions & 7 deletions
10
application/internal/clickhouse-ts/src/httpClient/http-fetch-client.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.