diff --git a/sql/20230912051648_clickhouse.down.sql b/sql/20230912051648_clickhouse.down.sql deleted file mode 100644 index 5cbad299..00000000 --- a/sql/20230912051648_clickhouse.down.sql +++ /dev/null @@ -1,20 +0,0 @@ -DROP TABLE IF EXISTS events; -DROP TABLE IF EXISTS rakkess; -DROP TABLE IF EXISTS DeprecatedAPIs; -DROP TABLE IF EXISTS DeletedAPIs; -DROP TABLE IF EXISTS jfrogcontainerpush; -DROP TABLE IF EXISTS getall_resources; -DROP TABLE IF EXISTS outdated_images; -DROP TABLE IF EXISTS kubescore; -DROP TABLE IF EXISTS trivy_vul; -DROP TABLE IF EXISTS trivy_misconfig; -DROP TABLE IF EXISTS trivyimage; -DROP TABLE IF EXISTS dockerhubbuild; -DROP TABLE IF EXISTS azurecontainerpush; -DROP TABLE IF EXISTS quaycontainerpush; -DROP TABLE IF EXISTS trivysbom; -DROP TABLE IF EXISTS azure_devops; -DROP TABLE IF EXISTS github; -DROP TABLE IF EXISTS gitlab; -DROP TABLE IF EXISTS bitbucket; -DROP TABLE IF EXISTS gitea; diff --git a/sql/20230912051648_clickhouse.up.sql b/sql/20230912051648_clickhouse.up.sql deleted file mode 100644 index a53ee9a9..00000000 --- a/sql/20230912051648_clickhouse.up.sql +++ /dev/null @@ -1,272 +0,0 @@ --- kubvizTable -CREATE TABLE IF NOT EXISTS events ( - ClusterName String, - Id String, - EventTime DateTime('UTC'), - OpType String, - Name String, - Namespace String, - Kind String, - Message String, - Reason String, - Host String, - Event String, - FirstTime String, - LastTime String -) engine=File(TabSeparated); - --- rakeesTable -CREATE TABLE IF NOT EXISTS rakkess ( - ClusterName String, - Name String, - Create String, - Delete String, - List String, - Update String, - EventTime DateTime('UTC') -) engine=File(TabSeparated); - --- kubePugDepricatedTable -CREATE TABLE IF NOT EXISTS DeprecatedAPIs ( - ClusterName String, - ObjectName String, - Description String, - Kind String, - Deprecated UInt8, - Scope String, - EventTime DateTime('UTC') -) engine=File(TabSeparated); - --- kubepugDeletedTable -CREATE TABLE IF NOT EXISTS DeletedAPIs ( - ClusterName String, - ObjectName String, - Group String, - Kind String, - Version String, - Name String, - Deleted UInt8, - Scope String, - EventTime DateTime('UTC') -) engine=File(TabSeparated); - --- jfrogContainerPushEventTable -CREATE TABLE IF NOT EXISTS jfrogcontainerpush ( - Domain String, - EventType String, - RegistryURL String, - RepositoryName String, - SHAID String, - Size Int32, - ImageName String, - Tag String, - Event String, - EventTime DateTime('UTC') -) engine=File(TabSeparated); - --- ketallTable -CREATE TABLE IF NOT EXISTS getall_resources ( - ClusterName String, - Namespace String, - Kind String, - Resource String, - Age String, - EventTime DateTime('UTC') -) engine=File(TabSeparated); - --- outdateTable -CREATE TABLE IF NOT EXISTS outdated_images ( - ClusterName String, - Namespace String, - Pod String, - CurrentImage String, - CurrentTag String, - LatestVersion String, - VersionsBehind Int64, - EventTime DateTime('UTC') -) engine=File(TabSeparated); - --- kubescoreTable -CREATE TABLE IF NOT EXISTS kubescore ( - id UUID, - namespace String, - cluster_name String, - recommendations String, - EventTime DateTime('UTC') -) engine=File(TabSeparated); - --- trivyTableVul -CREATE TABLE IF NOT EXISTS trivy_vul ( - id UUID, - cluster_name String, - namespace String, - kind String, - name String, - vul_id String, - vul_vendor_ids String, - vul_pkg_id String, - vul_pkg_name String, - vul_pkg_path String, - vul_installed_version String, - vul_fixed_version String, - vul_title String, - vul_severity String, - vul_published_date DateTime('UTC'), - vul_last_modified_date DateTime('UTC') -) engine=File(TabSeparated); - --- trivyTableMisconfig -CREATE TABLE IF NOT EXISTS trivy_misconfig ( - id UUID, - cluster_name String, - namespace String, - kind String, - name String, - misconfig_id String, - misconfig_avdid String, - misconfig_type String, - misconfig_title String, - misconfig_desc String, - misconfig_msg String, - misconfig_query String, - misconfig_resolution String, - misconfig_severity String, - misconfig_status String, - EventTime DateTime('UTC') -) engine=File(TabSeparated); - --- trivyTableImage -CREATE TABLE IF NOT EXISTS trivyimage ( - id UUID, - cluster_name String, - artifact_name String, - vul_id String, - vul_pkg_id String, - vul_pkg_name String, - vul_installed_version String, - vul_fixed_version String, - vul_title String, - vul_severity String, - vul_published_date DateTime('UTC'), - vul_last_modified_date DateTime('UTC') -) engine=File(TabSeparated); - --- dockerHubBuildTable -CREATE TABLE IF NOT EXISTS dockerhubbuild ( - PushedBy String, - ImageTag String, - RepositoryName String, - DateCreated String, - Owner String, - Event String, - EventTime DateTime('UTC') -) engine=File(TabSeparated); - --- azureContainerPushEventTable -CREATE TABLE IF NOT EXISTS azurecontainerpush ( - RegistryURL String, - RepositoryName String, - Tag String, - ImageName String, - Event String, - Size Int32, - SHAID String, - EventTime DateTime('UTC') -) engine=File(TabSeparated); - --- quayContainerPushEventTable -CREATE TABLE IF NOT EXISTS quaycontainerpush ( - name String, - repository String, - nameSpace String, - dockerURL String, - homePage String, - tag String, - Event String, - EventTime DateTime('UTC') -) engine=File(TabSeparated); - --- trivySbomTable -CREATE TABLE IF NOT EXISTS trivysbom ( - id UUID, - schema String, - bom_format String, - spec_version String, - serial_number String, - version INTEGER, - metadata_timestamp DateTime('UTC'), - metatool_vendor String, - metatool_name String, - metatool_version String, - component_bom_ref String, - component_type String, - component_name String, - component_version String, - component_property_name String, - component_property_value String, - component_hash_alg String, - component_hash_content String, - component_license_exp String, - component_purl String, - dependency_ref String -) engine=File(TabSeparated); - --- AzureDevopsTable -CREATE TABLE IF NOT EXISTS azure_devops ( - Author String, - Provider String, - CommitID String, - CommitUrl String, - EventType String, - RepoName String, - TimeStamp DateTime('UTC'), - Event String -) engine=File(TabSeparated); - --- GithubTable -CREATE TABLE IF NOT EXISTS github ( - Author String, - Provider String, - CommitID String, - CommitUrl String, - EventType String, - RepoName String, - TimeStamp DateTime('UTC'), - Event String -) engine=File(TabSeparated); - --- GitlabTable -CREATE TABLE IF NOT EXISTS gitlab ( - Author String, - Provider String, - CommitID String, - CommitUrl String, - EventType String, - RepoName String, - TimeStamp DateTime('UTC'), - Event String -) engine=File(TabSeparated); - --- BitbucketTable -CREATE TABLE IF NOT EXISTS bitbucket ( - Author String, - Provider String, - CommitID String, - CommitUrl String, - EventType String, - RepoName String, - TimeStamp DateTime('UTC'), - Event String -) engine=File(TabSeparated); - --- GiteaTable -CREATE TABLE IF NOT EXISTS gitea ( - Author String, - Provider String, - CommitID String, - CommitUrl String, - EventType String, - RepoName String, - TimeStamp DateTime('UTC'), - Event String -) engine=File(TabSeparated); diff --git a/sql/20230915101223_events.down.sql b/sql/20230915101223_events.down.sql new file mode 100644 index 00000000..653c7400 --- /dev/null +++ b/sql/20230915101223_events.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS events; diff --git a/sql/20230915101223_events.up.sql b/sql/20230915101223_events.up.sql new file mode 100644 index 00000000..b857a489 --- /dev/null +++ b/sql/20230915101223_events.up.sql @@ -0,0 +1,15 @@ +CREATE TABLE IF NOT EXISTS events ( + ClusterName String, + Id String, + EventTime DateTime('UTC'), + OpType String, + Name String, + Namespace String, + Kind String, + Message String, + Reason String, + Host String, + Event String, + FirstTime String, + LastTime String +) engine=File(TabSeparated); diff --git a/sql/20230915101317_rakkess.down.sql b/sql/20230915101317_rakkess.down.sql new file mode 100644 index 00000000..e182c3cb --- /dev/null +++ b/sql/20230915101317_rakkess.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS rakkess; diff --git a/sql/20230915101317_rakkess.up.sql b/sql/20230915101317_rakkess.up.sql new file mode 100644 index 00000000..e297366c --- /dev/null +++ b/sql/20230915101317_rakkess.up.sql @@ -0,0 +1,9 @@ +CREATE TABLE IF NOT EXISTS rakkess ( + ClusterName String, + Name String, + Create String, + Delete String, + List String, + Update String, + EventTime DateTime('UTC') +) engine=File(TabSeparated); diff --git a/sql/20230915101358_DeprecatedAPIs.down.sql b/sql/20230915101358_DeprecatedAPIs.down.sql new file mode 100644 index 00000000..af77c59a --- /dev/null +++ b/sql/20230915101358_DeprecatedAPIs.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS DeprecatedAPIs; diff --git a/sql/20230915101358_DeprecatedAPIs.up.sql b/sql/20230915101358_DeprecatedAPIs.up.sql new file mode 100644 index 00000000..27dc8248 --- /dev/null +++ b/sql/20230915101358_DeprecatedAPIs.up.sql @@ -0,0 +1,9 @@ +CREATE TABLE IF NOT EXISTS DeprecatedAPIs ( + ClusterName String, + ObjectName String, + Description String, + Kind String, + Deprecated UInt8, + Scope String, + EventTime DateTime('UTC') +) engine=File(TabSeparated); diff --git a/sql/20230915101437_DeletedAPIs.down.sql b/sql/20230915101437_DeletedAPIs.down.sql new file mode 100644 index 00000000..e0157f5e --- /dev/null +++ b/sql/20230915101437_DeletedAPIs.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS DeletedAPIs; diff --git a/sql/20230915101437_DeletedAPIs.up.sql b/sql/20230915101437_DeletedAPIs.up.sql new file mode 100644 index 00000000..4a61f7a8 --- /dev/null +++ b/sql/20230915101437_DeletedAPIs.up.sql @@ -0,0 +1,11 @@ +CREATE TABLE IF NOT EXISTS DeletedAPIs ( + ClusterName String, + ObjectName String, + Group String, + Kind String, + Version String, + Name String, + Deleted UInt8, + Scope String, + EventTime DateTime('UTC') +) engine=File(TabSeparated); diff --git a/sql/20230915101512_jfrogcontainerpush.down.sql b/sql/20230915101512_jfrogcontainerpush.down.sql new file mode 100644 index 00000000..03c41863 --- /dev/null +++ b/sql/20230915101512_jfrogcontainerpush.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS jfrogcontainerpush; diff --git a/sql/20230915101512_jfrogcontainerpush.up.sql b/sql/20230915101512_jfrogcontainerpush.up.sql new file mode 100644 index 00000000..60c6f058 --- /dev/null +++ b/sql/20230915101512_jfrogcontainerpush.up.sql @@ -0,0 +1,12 @@ +CREATE TABLE IF NOT EXISTS jfrogcontainerpush ( + Domain String, + EventType String, + RegistryURL String, + RepositoryName String, + SHAID String, + Size Int32, + ImageName String, + Tag String, + Event String, + EventTime DateTime('UTC') +) engine=File(TabSeparated); diff --git a/sql/20230915101549_getall_resources.down.sql b/sql/20230915101549_getall_resources.down.sql new file mode 100644 index 00000000..866aaa72 --- /dev/null +++ b/sql/20230915101549_getall_resources.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS getall_resources; diff --git a/sql/20230915101549_getall_resources.up.sql b/sql/20230915101549_getall_resources.up.sql new file mode 100644 index 00000000..2263f53c --- /dev/null +++ b/sql/20230915101549_getall_resources.up.sql @@ -0,0 +1,8 @@ +CREATE TABLE IF NOT EXISTS getall_resources ( + ClusterName String, + Namespace String, + Kind String, + Resource String, + Age String, + EventTime DateTime('UTC') +) engine=File(TabSeparated); diff --git a/sql/20230915101643_outdated_images.down.sql b/sql/20230915101643_outdated_images.down.sql new file mode 100644 index 00000000..4741b3c3 --- /dev/null +++ b/sql/20230915101643_outdated_images.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS outdated_images; diff --git a/sql/20230915101643_outdated_images.up.sql b/sql/20230915101643_outdated_images.up.sql new file mode 100644 index 00000000..44e67bcf --- /dev/null +++ b/sql/20230915101643_outdated_images.up.sql @@ -0,0 +1,10 @@ +CREATE TABLE IF NOT EXISTS outdated_images ( + ClusterName String, + Namespace String, + Pod String, + CurrentImage String, + CurrentTag String, + LatestVersion String, + VersionsBehind Int64, + EventTime DateTime('UTC') +) engine=File(TabSeparated); diff --git a/sql/20230915101736_kubescore.down.sql b/sql/20230915101736_kubescore.down.sql new file mode 100644 index 00000000..db35ad56 --- /dev/null +++ b/sql/20230915101736_kubescore.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS kubescore; diff --git a/sql/20230915101736_kubescore.up.sql b/sql/20230915101736_kubescore.up.sql new file mode 100644 index 00000000..0f18bfb7 --- /dev/null +++ b/sql/20230915101736_kubescore.up.sql @@ -0,0 +1,7 @@ +CREATE TABLE IF NOT EXISTS kubescore ( + id UUID, + namespace String, + cluster_name String, + recommendations String, + EventTime DateTime('UTC') +) engine=File(TabSeparated); diff --git a/sql/20230915101811_trivy_vul.down.sql b/sql/20230915101811_trivy_vul.down.sql new file mode 100644 index 00000000..52940cbf --- /dev/null +++ b/sql/20230915101811_trivy_vul.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS trivy_vul; diff --git a/sql/20230915101811_trivy_vul.up.sql b/sql/20230915101811_trivy_vul.up.sql new file mode 100644 index 00000000..f141ff03 --- /dev/null +++ b/sql/20230915101811_trivy_vul.up.sql @@ -0,0 +1,18 @@ +CREATE TABLE IF NOT EXISTS trivy_vul ( + id UUID, + cluster_name String, + namespace String, + kind String, + name String, + vul_id String, + vul_vendor_ids String, + vul_pkg_id String, + vul_pkg_name String, + vul_pkg_path String, + vul_installed_version String, + vul_fixed_version String, + vul_title String, + vul_severity String, + vul_published_date DateTime('UTC'), + vul_last_modified_date DateTime('UTC') +) engine=File(TabSeparated); diff --git a/sql/20230915101844_trivy_misconfig.down.sql b/sql/20230915101844_trivy_misconfig.down.sql new file mode 100644 index 00000000..518dab21 --- /dev/null +++ b/sql/20230915101844_trivy_misconfig.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS trivy_misconfig; diff --git a/sql/20230915101844_trivy_misconfig.up.sql b/sql/20230915101844_trivy_misconfig.up.sql new file mode 100644 index 00000000..3971b40e --- /dev/null +++ b/sql/20230915101844_trivy_misconfig.up.sql @@ -0,0 +1,18 @@ +CREATE TABLE IF NOT EXISTS trivy_misconfig ( + id UUID, + cluster_name String, + namespace String, + kind String, + name String, + misconfig_id String, + misconfig_avdid String, + misconfig_type String, + misconfig_title String, + misconfig_desc String, + misconfig_msg String, + misconfig_query String, + misconfig_resolution String, + misconfig_severity String, + misconfig_status String, + EventTime DateTime('UTC') +) engine=File(TabSeparated); diff --git a/sql/20230915101910_trivyimage.down.sql b/sql/20230915101910_trivyimage.down.sql new file mode 100644 index 00000000..54ee8f76 --- /dev/null +++ b/sql/20230915101910_trivyimage.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS trivyimage; diff --git a/sql/20230915101910_trivyimage.up.sql b/sql/20230915101910_trivyimage.up.sql new file mode 100644 index 00000000..f6781862 --- /dev/null +++ b/sql/20230915101910_trivyimage.up.sql @@ -0,0 +1,14 @@ +CREATE TABLE IF NOT EXISTS trivyimage ( + id UUID, + cluster_name String, + artifact_name String, + vul_id String, + vul_pkg_id String, + vul_pkg_name String, + vul_installed_version String, + vul_fixed_version String, + vul_title String, + vul_severity String, + vul_published_date DateTime('UTC'), + vul_last_modified_date DateTime('UTC') +) engine=File(TabSeparated); diff --git a/sql/20230915102122_dockerhubbuild.down.sql b/sql/20230915102122_dockerhubbuild.down.sql new file mode 100644 index 00000000..2cc2ee1d --- /dev/null +++ b/sql/20230915102122_dockerhubbuild.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS dockerhubbuild; diff --git a/sql/20230915102122_dockerhubbuild.up.sql b/sql/20230915102122_dockerhubbuild.up.sql new file mode 100644 index 00000000..5d770afd --- /dev/null +++ b/sql/20230915102122_dockerhubbuild.up.sql @@ -0,0 +1,9 @@ +CREATE TABLE IF NOT EXISTS dockerhubbuild ( + PushedBy String, + ImageTag String, + RepositoryName String, + DateCreated String, + Owner String, + Event String, + EventTime DateTime('UTC') +) engine=File(TabSeparated); diff --git a/sql/20230915102157_azurecontainerpush.down.sql b/sql/20230915102157_azurecontainerpush.down.sql new file mode 100644 index 00000000..3d043e15 --- /dev/null +++ b/sql/20230915102157_azurecontainerpush.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS azurecontainerpush; diff --git a/sql/20230915102157_azurecontainerpush.up.sql b/sql/20230915102157_azurecontainerpush.up.sql new file mode 100644 index 00000000..f603a09c --- /dev/null +++ b/sql/20230915102157_azurecontainerpush.up.sql @@ -0,0 +1,10 @@ +CREATE TABLE IF NOT EXISTS azurecontainerpush ( + RegistryURL String, + RepositoryName String, + Tag String, + ImageName String, + Event String, + Size Int32, + SHAID String, + EventTime DateTime('UTC') +) engine=File(TabSeparated); diff --git a/sql/20230915102229_quaycontainerpush.down.sql b/sql/20230915102229_quaycontainerpush.down.sql new file mode 100644 index 00000000..e157e46a --- /dev/null +++ b/sql/20230915102229_quaycontainerpush.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS quaycontainerpush; diff --git a/sql/20230915102229_quaycontainerpush.up.sql b/sql/20230915102229_quaycontainerpush.up.sql new file mode 100644 index 00000000..c79d0108 --- /dev/null +++ b/sql/20230915102229_quaycontainerpush.up.sql @@ -0,0 +1,10 @@ +CREATE TABLE IF NOT EXISTS quaycontainerpush ( + name String, + repository String, + nameSpace String, + dockerURL String, + homePage String, + tag String, + Event String, + EventTime DateTime('UTC') +) engine=File(TabSeparated); diff --git a/sql/20230915102314_trivysbom.down.sql b/sql/20230915102314_trivysbom.down.sql new file mode 100644 index 00000000..af2515cb --- /dev/null +++ b/sql/20230915102314_trivysbom.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS trivysbom; diff --git a/sql/20230915102314_trivysbom.up.sql b/sql/20230915102314_trivysbom.up.sql new file mode 100644 index 00000000..4efa46a3 --- /dev/null +++ b/sql/20230915102314_trivysbom.up.sql @@ -0,0 +1,23 @@ +CREATE TABLE IF NOT EXISTS trivysbom ( + id UUID, + schema String, + bom_format String, + spec_version String, + serial_number String, + version INTEGER, + metadata_timestamp DateTime('UTC'), + metatool_vendor String, + metatool_name String, + metatool_version String, + component_bom_ref String, + component_type String, + component_name String, + component_version String, + component_property_name String, + component_property_value String, + component_hash_alg String, + component_hash_content String, + component_license_exp String, + component_purl String, + dependency_ref String +) engine=File(TabSeparated); diff --git a/sql/20230915102348_azure_devops.down.sql b/sql/20230915102348_azure_devops.down.sql new file mode 100644 index 00000000..e6227a49 --- /dev/null +++ b/sql/20230915102348_azure_devops.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS azure_devops; diff --git a/sql/20230915102348_azure_devops.up.sql b/sql/20230915102348_azure_devops.up.sql new file mode 100644 index 00000000..00f561b8 --- /dev/null +++ b/sql/20230915102348_azure_devops.up.sql @@ -0,0 +1,10 @@ +CREATE TABLE IF NOT EXISTS azure_devops ( + Author String, + Provider String, + CommitID String, + CommitUrl String, + EventType String, + RepoName String, + TimeStamp DateTime('UTC'), + Event String +) engine=File(TabSeparated); diff --git a/sql/20230915102437_github.down.sql b/sql/20230915102437_github.down.sql new file mode 100644 index 00000000..dd91d720 --- /dev/null +++ b/sql/20230915102437_github.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS github; diff --git a/sql/20230915102437_github.up.sql b/sql/20230915102437_github.up.sql new file mode 100644 index 00000000..3adb6d79 --- /dev/null +++ b/sql/20230915102437_github.up.sql @@ -0,0 +1,10 @@ +CREATE TABLE IF NOT EXISTS github ( + Author String, + Provider String, + CommitID String, + CommitUrl String, + EventType String, + RepoName String, + TimeStamp DateTime('UTC'), + Event String +) engine=File(TabSeparated); diff --git a/sql/20230915102739_gitlab.down.sql b/sql/20230915102739_gitlab.down.sql new file mode 100644 index 00000000..769364c9 --- /dev/null +++ b/sql/20230915102739_gitlab.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS gitlab; diff --git a/sql/20230915102739_gitlab.up.sql b/sql/20230915102739_gitlab.up.sql new file mode 100644 index 00000000..737c66d4 --- /dev/null +++ b/sql/20230915102739_gitlab.up.sql @@ -0,0 +1,10 @@ +CREATE TABLE IF NOT EXISTS gitlab ( + Author String, + Provider String, + CommitID String, + CommitUrl String, + EventType String, + RepoName String, + TimeStamp DateTime('UTC'), + Event String +) engine=File(TabSeparated); diff --git a/sql/20230915102817_bitbucket.down.sql b/sql/20230915102817_bitbucket.down.sql new file mode 100644 index 00000000..b0df312d --- /dev/null +++ b/sql/20230915102817_bitbucket.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS bitbucket; diff --git a/sql/20230915102817_bitbucket.up.sql b/sql/20230915102817_bitbucket.up.sql new file mode 100644 index 00000000..d8f70809 --- /dev/null +++ b/sql/20230915102817_bitbucket.up.sql @@ -0,0 +1,10 @@ +CREATE TABLE IF NOT EXISTS bitbucket ( + Author String, + Provider String, + CommitID String, + CommitUrl String, + EventType String, + RepoName String, + TimeStamp DateTime('UTC'), + Event String +) engine=File(TabSeparated); diff --git a/sql/20230915102843_gitea.down.sql b/sql/20230915102843_gitea.down.sql new file mode 100644 index 00000000..9c24ca85 --- /dev/null +++ b/sql/20230915102843_gitea.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS gitea; diff --git a/sql/20230915102843_gitea.up.sql b/sql/20230915102843_gitea.up.sql new file mode 100644 index 00000000..e8ef86fd --- /dev/null +++ b/sql/20230915102843_gitea.up.sql @@ -0,0 +1,10 @@ +CREATE TABLE IF NOT EXISTS gitea ( + Author String, + Provider String, + CommitID String, + CommitUrl String, + EventType String, + RepoName String, + TimeStamp DateTime('UTC'), + Event String +) engine=File(TabSeparated);