Merge branch 'canary' into feat/requests

This commit is contained in:
Mauricio Siu
2024-09-05 00:17:40 -06:00
189 changed files with 22323 additions and 2667 deletions

View File

@@ -0,0 +1,142 @@
DO $$ BEGIN
CREATE TYPE "public"."gitProviderType" AS ENUM('github', 'gitlab', 'bitbucket');
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
ALTER TYPE "sourceType" ADD VALUE 'gitlab';--> statement-breakpoint
ALTER TYPE "sourceType" ADD VALUE 'bitbucket';--> statement-breakpoint
ALTER TYPE "sourceTypeCompose" ADD VALUE 'gitlab';--> statement-breakpoint
ALTER TYPE "sourceTypeCompose" ADD VALUE 'bitbucket';--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "git_provider" (
"gitProviderId" text PRIMARY KEY NOT NULL,
"name" text NOT NULL,
"providerType" "gitProviderType" DEFAULT 'github' NOT NULL,
"createdAt" text NOT NULL,
"authId" text NOT NULL
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "bitbucket" (
"bitbucketId" text PRIMARY KEY NOT NULL,
"bitbucketUsername" text,
"appPassword" text,
"bitbucketWorkspaceName" text,
"gitProviderId" text NOT NULL
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "github" (
"githubId" text PRIMARY KEY NOT NULL,
"githubAppName" text,
"githubAppId" integer,
"githubClientId" text,
"githubClientSecret" text,
"githubInstallationId" text,
"githubPrivateKey" text,
"githubWebhookSecret" text,
"gitProviderId" text NOT NULL
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "gitlab" (
"gitlabId" text PRIMARY KEY NOT NULL,
"application_id" text,
"redirect_uri" text,
"secret" text,
"access_token" text,
"refresh_token" text,
"group_name" text,
"expires_at" integer,
"gitProviderId" text NOT NULL
);
--> statement-breakpoint
ALTER TABLE "application" ADD COLUMN "gitlabProjectId" integer;--> statement-breakpoint
ALTER TABLE "application" ADD COLUMN "gitlabRepository" text;--> statement-breakpoint
ALTER TABLE "application" ADD COLUMN "gitlabOwner" text;--> statement-breakpoint
ALTER TABLE "application" ADD COLUMN "gitlabBranch" text;--> statement-breakpoint
ALTER TABLE "application" ADD COLUMN "gitlabBuildPath" text DEFAULT '/';--> statement-breakpoint
ALTER TABLE "application" ADD COLUMN "gitlabPathNamespace" text;--> statement-breakpoint
ALTER TABLE "application" ADD COLUMN "bitbucketRepository" text;--> statement-breakpoint
ALTER TABLE "application" ADD COLUMN "bitbucketOwner" text;--> statement-breakpoint
ALTER TABLE "application" ADD COLUMN "bitbucketBranch" text;--> statement-breakpoint
ALTER TABLE "application" ADD COLUMN "bitbucketBuildPath" text DEFAULT '/';--> statement-breakpoint
ALTER TABLE "application" ADD COLUMN "githubId" text;--> statement-breakpoint
ALTER TABLE "application" ADD COLUMN "gitlabId" text;--> statement-breakpoint
ALTER TABLE "application" ADD COLUMN "bitbucketId" text;--> statement-breakpoint
ALTER TABLE "user" ADD COLUMN "canAccessToGitProviders" boolean DEFAULT false NOT NULL;--> statement-breakpoint
ALTER TABLE "compose" ADD COLUMN "gitlabProjectId" integer;--> statement-breakpoint
ALTER TABLE "compose" ADD COLUMN "gitlabRepository" text;--> statement-breakpoint
ALTER TABLE "compose" ADD COLUMN "gitlabOwner" text;--> statement-breakpoint
ALTER TABLE "compose" ADD COLUMN "gitlabBranch" text;--> statement-breakpoint
ALTER TABLE "compose" ADD COLUMN "gitlabPathNamespace" text;--> statement-breakpoint
ALTER TABLE "compose" ADD COLUMN "bitbucketRepository" text;--> statement-breakpoint
ALTER TABLE "compose" ADD COLUMN "bitbucketOwner" text;--> statement-breakpoint
ALTER TABLE "compose" ADD COLUMN "bitbucketBranch" text;--> statement-breakpoint
ALTER TABLE "compose" ADD COLUMN "githubId" text;--> statement-breakpoint
ALTER TABLE "compose" ADD COLUMN "gitlabId" text;--> statement-breakpoint
ALTER TABLE "compose" ADD COLUMN "bitbucketId" text;--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "git_provider" ADD CONSTRAINT "git_provider_authId_auth_id_fk" FOREIGN KEY ("authId") REFERENCES "public"."auth"("id") ON DELETE cascade ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "bitbucket" ADD CONSTRAINT "bitbucket_gitProviderId_git_provider_gitProviderId_fk" FOREIGN KEY ("gitProviderId") REFERENCES "public"."git_provider"("gitProviderId") ON DELETE cascade ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "github" ADD CONSTRAINT "github_gitProviderId_git_provider_gitProviderId_fk" FOREIGN KEY ("gitProviderId") REFERENCES "public"."git_provider"("gitProviderId") ON DELETE cascade ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "gitlab" ADD CONSTRAINT "gitlab_gitProviderId_git_provider_gitProviderId_fk" FOREIGN KEY ("gitProviderId") REFERENCES "public"."git_provider"("gitProviderId") ON DELETE cascade ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "application" ADD CONSTRAINT "application_githubId_github_githubId_fk" FOREIGN KEY ("githubId") REFERENCES "public"."github"("githubId") ON DELETE set null ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "application" ADD CONSTRAINT "application_gitlabId_gitlab_gitlabId_fk" FOREIGN KEY ("gitlabId") REFERENCES "public"."gitlab"("gitlabId") ON DELETE set null ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "application" ADD CONSTRAINT "application_bitbucketId_bitbucket_bitbucketId_fk" FOREIGN KEY ("bitbucketId") REFERENCES "public"."bitbucket"("bitbucketId") ON DELETE set null ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "compose" ADD CONSTRAINT "compose_githubId_github_githubId_fk" FOREIGN KEY ("githubId") REFERENCES "public"."github"("githubId") ON DELETE set null ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "compose" ADD CONSTRAINT "compose_gitlabId_gitlab_gitlabId_fk" FOREIGN KEY ("gitlabId") REFERENCES "public"."gitlab"("gitlabId") ON DELETE set null ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "compose" ADD CONSTRAINT "compose_bitbucketId_bitbucket_bitbucketId_fk" FOREIGN KEY ("bitbucketId") REFERENCES "public"."bitbucket"("bitbucketId") ON DELETE set null ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
ALTER TABLE "admin" DROP COLUMN IF EXISTS "githubAppId";--> statement-breakpoint
ALTER TABLE "admin" DROP COLUMN IF EXISTS "githubAppName";--> statement-breakpoint
ALTER TABLE "admin" DROP COLUMN IF EXISTS "githubClientId";--> statement-breakpoint
ALTER TABLE "admin" DROP COLUMN IF EXISTS "githubClientSecret";--> statement-breakpoint
ALTER TABLE "admin" DROP COLUMN IF EXISTS "githubInstallationId";--> statement-breakpoint
ALTER TABLE "admin" DROP COLUMN IF EXISTS "githubPrivateKey";--> statement-breakpoint
ALTER TABLE "admin" DROP COLUMN IF EXISTS "githubWebhookSecret";

View File

@@ -0,0 +1 @@
ALTER TABLE "application" ADD COLUMN "dockerBuildStage" text;

View File

@@ -0,0 +1,2 @@
ALTER TABLE "compose" ADD COLUMN "suffix" text DEFAULT '' NOT NULL;--> statement-breakpoint
ALTER TABLE "compose" ADD COLUMN "randomize" boolean DEFAULT false NOT NULL;

View File

@@ -1,5 +1,5 @@
{
"id": "1db6392e-e3bf-424b-bbcd-0e687b2a3ff5",
"id": "4b757666-9e18-454e-9cfa-762d03bf378f",
"prevId": "ce8a8861-2970-4889-ac2e-3cfe60d12736",
"version": "6",
"dialect": "postgresql",
@@ -137,6 +137,68 @@
"primaryKey": false,
"notNull": false
},
"gitlabProjectId": {
"name": "gitlabProjectId",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"gitlabRepository": {
"name": "gitlabRepository",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabOwner": {
"name": "gitlabOwner",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabBranch": {
"name": "gitlabBranch",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabBuildPath": {
"name": "gitlabBuildPath",
"type": "text",
"primaryKey": false,
"notNull": false,
"default": "'/'"
},
"gitlabPathNamespace": {
"name": "gitlabPathNamespace",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketRepository": {
"name": "bitbucketRepository",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketOwner": {
"name": "bitbucketOwner",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketBranch": {
"name": "bitbucketBranch",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketBuildPath": {
"name": "bitbucketBuildPath",
"type": "text",
"primaryKey": false,
"notNull": false,
"default": "'/'"
},
"username": {
"name": "username",
"type": "text",
@@ -291,6 +353,24 @@
"type": "text",
"primaryKey": false,
"notNull": true
},
"githubId": {
"name": "githubId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabId": {
"name": "gitlabId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketId": {
"name": "bitbucketId",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
@@ -333,6 +413,45 @@
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"application_githubId_github_githubId_fk": {
"name": "application_githubId_github_githubId_fk",
"tableFrom": "application",
"tableTo": "github",
"columnsFrom": [
"githubId"
],
"columnsTo": [
"githubId"
],
"onDelete": "set null",
"onUpdate": "no action"
},
"application_gitlabId_gitlab_gitlabId_fk": {
"name": "application_gitlabId_gitlab_gitlabId_fk",
"tableFrom": "application",
"tableTo": "gitlab",
"columnsFrom": [
"gitlabId"
],
"columnsTo": [
"gitlabId"
],
"onDelete": "set null",
"onUpdate": "no action"
},
"application_bitbucketId_bitbucket_bitbucketId_fk": {
"name": "application_bitbucketId_bitbucket_bitbucketId_fk",
"tableFrom": "application",
"tableTo": "bitbucket",
"columnsFrom": [
"bitbucketId"
],
"columnsTo": [
"bitbucketId"
],
"onDelete": "set null",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
@@ -572,6 +691,13 @@
"notNull": true,
"default": false
},
"canAccessToGitProviders": {
"name": "canAccessToGitProviders",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false
},
"canAccessToTraefikFiles": {
"name": "canAccessToTraefikFiles",
"type": "boolean",
@@ -648,18 +774,6 @@
"primaryKey": true,
"notNull": true
},
"githubAppId": {
"name": "githubAppId",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"githubAppName": {
"name": "githubAppName",
"type": "text",
"primaryKey": false,
"notNull": false
},
"serverIp": {
"name": "serverIp",
"type": "text",
@@ -680,36 +794,6 @@
"primaryKey": false,
"notNull": false
},
"githubClientId": {
"name": "githubClientId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubClientSecret": {
"name": "githubClientSecret",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubInstallationId": {
"name": "githubInstallationId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubPrivateKey": {
"name": "githubPrivateKey",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubWebhookSecret": {
"name": "githubWebhookSecret",
"type": "text",
"primaryKey": false,
"notNull": false
},
"letsEncryptEmail": {
"name": "letsEncryptEmail",
"type": "text",
@@ -729,13 +813,6 @@
"notNull": true,
"default": false
},
"enableLogRotation": {
"name": "enableLogRotation",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false
},
"authId": {
"name": "authId",
"type": "text",
@@ -2439,6 +2516,54 @@
"primaryKey": false,
"notNull": false
},
"gitlabProjectId": {
"name": "gitlabProjectId",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"gitlabRepository": {
"name": "gitlabRepository",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabOwner": {
"name": "gitlabOwner",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabBranch": {
"name": "gitlabBranch",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabPathNamespace": {
"name": "gitlabPathNamespace",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketRepository": {
"name": "bitbucketRepository",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketOwner": {
"name": "bitbucketOwner",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketBranch": {
"name": "bitbucketBranch",
"type": "text",
"primaryKey": false,
"notNull": false
},
"customGitUrl": {
"name": "customGitUrl",
"type": "text",
@@ -2490,6 +2615,24 @@
"type": "text",
"primaryKey": false,
"notNull": true
},
"githubId": {
"name": "githubId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabId": {
"name": "gitlabId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketId": {
"name": "bitbucketId",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
@@ -2519,6 +2662,45 @@
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"compose_githubId_github_githubId_fk": {
"name": "compose_githubId_github_githubId_fk",
"tableFrom": "compose",
"tableTo": "github",
"columnsFrom": [
"githubId"
],
"columnsTo": [
"githubId"
],
"onDelete": "set null",
"onUpdate": "no action"
},
"compose_gitlabId_gitlab_gitlabId_fk": {
"name": "compose_gitlabId_gitlab_gitlabId_fk",
"tableFrom": "compose",
"tableTo": "gitlab",
"columnsFrom": [
"gitlabId"
],
"columnsTo": [
"gitlabId"
],
"onDelete": "set null",
"onUpdate": "no action"
},
"compose_bitbucketId_bitbucket_bitbucketId_fk": {
"name": "compose_bitbucketId_bitbucket_bitbucketId_fk",
"tableFrom": "compose",
"tableTo": "bitbucket",
"columnsFrom": [
"bitbucketId"
],
"columnsTo": [
"bitbucketId"
],
"onDelete": "set null",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
@@ -2926,6 +3108,272 @@
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"public.git_provider": {
"name": "git_provider",
"schema": "",
"columns": {
"gitProviderId": {
"name": "gitProviderId",
"type": "text",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"providerType": {
"name": "providerType",
"type": "gitProviderType",
"typeSchema": "public",
"primaryKey": false,
"notNull": true,
"default": "'github'"
},
"createdAt": {
"name": "createdAt",
"type": "text",
"primaryKey": false,
"notNull": true
},
"authId": {
"name": "authId",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"git_provider_authId_auth_id_fk": {
"name": "git_provider_authId_auth_id_fk",
"tableFrom": "git_provider",
"tableTo": "auth",
"columnsFrom": [
"authId"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"public.bitbucket": {
"name": "bitbucket",
"schema": "",
"columns": {
"bitbucketId": {
"name": "bitbucketId",
"type": "text",
"primaryKey": true,
"notNull": true
},
"bitbucketUsername": {
"name": "bitbucketUsername",
"type": "text",
"primaryKey": false,
"notNull": false
},
"appPassword": {
"name": "appPassword",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketWorkspaceName": {
"name": "bitbucketWorkspaceName",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitProviderId": {
"name": "gitProviderId",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"bitbucket_gitProviderId_git_provider_gitProviderId_fk": {
"name": "bitbucket_gitProviderId_git_provider_gitProviderId_fk",
"tableFrom": "bitbucket",
"tableTo": "git_provider",
"columnsFrom": [
"gitProviderId"
],
"columnsTo": [
"gitProviderId"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"public.github": {
"name": "github",
"schema": "",
"columns": {
"githubId": {
"name": "githubId",
"type": "text",
"primaryKey": true,
"notNull": true
},
"githubAppName": {
"name": "githubAppName",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubAppId": {
"name": "githubAppId",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"githubClientId": {
"name": "githubClientId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubClientSecret": {
"name": "githubClientSecret",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubInstallationId": {
"name": "githubInstallationId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubPrivateKey": {
"name": "githubPrivateKey",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubWebhookSecret": {
"name": "githubWebhookSecret",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitProviderId": {
"name": "gitProviderId",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"github_gitProviderId_git_provider_gitProviderId_fk": {
"name": "github_gitProviderId_git_provider_gitProviderId_fk",
"tableFrom": "github",
"tableTo": "git_provider",
"columnsFrom": [
"gitProviderId"
],
"columnsTo": [
"gitProviderId"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"public.gitlab": {
"name": "gitlab",
"schema": "",
"columns": {
"gitlabId": {
"name": "gitlabId",
"type": "text",
"primaryKey": true,
"notNull": true
},
"application_id": {
"name": "application_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"redirect_uri": {
"name": "redirect_uri",
"type": "text",
"primaryKey": false,
"notNull": false
},
"secret": {
"name": "secret",
"type": "text",
"primaryKey": false,
"notNull": false
},
"access_token": {
"name": "access_token",
"type": "text",
"primaryKey": false,
"notNull": false
},
"refresh_token": {
"name": "refresh_token",
"type": "text",
"primaryKey": false,
"notNull": false
},
"group_name": {
"name": "group_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"expires_at": {
"name": "expires_at",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"gitProviderId": {
"name": "gitProviderId",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"gitlab_gitProviderId_git_provider_gitProviderId_fk": {
"name": "gitlab_gitProviderId_git_provider_gitProviderId_fk",
"tableFrom": "gitlab",
"tableTo": "git_provider",
"columnsFrom": [
"gitProviderId"
],
"columnsTo": [
"gitProviderId"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
}
},
"enums": {
@@ -2947,6 +3395,8 @@
"docker",
"git",
"github",
"gitlab",
"bitbucket",
"drop"
]
},
@@ -3047,6 +3497,8 @@
"values": [
"git",
"github",
"gitlab",
"bitbucket",
"raw"
]
},
@@ -3067,6 +3519,15 @@
"discord",
"email"
]
},
"public.gitProviderType": {
"name": "gitProviderType",
"schema": "public",
"values": [
"github",
"gitlab",
"bitbucket"
]
}
},
"schemas": {},

View File

@@ -1,6 +1,6 @@
{
"id": "d9f4f668-e2a8-4a4e-bccf-67011b0a4a0d",
"prevId": "1db6392e-e3bf-424b-bbcd-0e687b2a3ff5",
"id": "6a7ce86e-f628-4786-ab30-e160dcdb0a39",
"prevId": "4b757666-9e18-454e-9cfa-762d03bf378f",
"version": "6",
"dialect": "postgresql",
"tables": {
@@ -137,6 +137,68 @@
"primaryKey": false,
"notNull": false
},
"gitlabProjectId": {
"name": "gitlabProjectId",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"gitlabRepository": {
"name": "gitlabRepository",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabOwner": {
"name": "gitlabOwner",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabBranch": {
"name": "gitlabBranch",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabBuildPath": {
"name": "gitlabBuildPath",
"type": "text",
"primaryKey": false,
"notNull": false,
"default": "'/'"
},
"gitlabPathNamespace": {
"name": "gitlabPathNamespace",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketRepository": {
"name": "bitbucketRepository",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketOwner": {
"name": "bitbucketOwner",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketBranch": {
"name": "bitbucketBranch",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketBuildPath": {
"name": "bitbucketBuildPath",
"type": "text",
"primaryKey": false,
"notNull": false,
"default": "'/'"
},
"username": {
"name": "username",
"type": "text",
@@ -191,6 +253,12 @@
"primaryKey": false,
"notNull": false
},
"dockerBuildStage": {
"name": "dockerBuildStage",
"type": "text",
"primaryKey": false,
"notNull": false
},
"dropBuildPath": {
"name": "dropBuildPath",
"type": "text",
@@ -291,6 +359,24 @@
"type": "text",
"primaryKey": false,
"notNull": true
},
"githubId": {
"name": "githubId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabId": {
"name": "gitlabId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketId": {
"name": "bitbucketId",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
@@ -333,6 +419,45 @@
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"application_githubId_github_githubId_fk": {
"name": "application_githubId_github_githubId_fk",
"tableFrom": "application",
"tableTo": "github",
"columnsFrom": [
"githubId"
],
"columnsTo": [
"githubId"
],
"onDelete": "set null",
"onUpdate": "no action"
},
"application_gitlabId_gitlab_gitlabId_fk": {
"name": "application_gitlabId_gitlab_gitlabId_fk",
"tableFrom": "application",
"tableTo": "gitlab",
"columnsFrom": [
"gitlabId"
],
"columnsTo": [
"gitlabId"
],
"onDelete": "set null",
"onUpdate": "no action"
},
"application_bitbucketId_bitbucket_bitbucketId_fk": {
"name": "application_bitbucketId_bitbucket_bitbucketId_fk",
"tableFrom": "application",
"tableTo": "bitbucket",
"columnsFrom": [
"bitbucketId"
],
"columnsTo": [
"bitbucketId"
],
"onDelete": "set null",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
@@ -572,6 +697,13 @@
"notNull": true,
"default": false
},
"canAccessToGitProviders": {
"name": "canAccessToGitProviders",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false
},
"canAccessToTraefikFiles": {
"name": "canAccessToTraefikFiles",
"type": "boolean",
@@ -648,18 +780,6 @@
"primaryKey": true,
"notNull": true
},
"githubAppId": {
"name": "githubAppId",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"githubAppName": {
"name": "githubAppName",
"type": "text",
"primaryKey": false,
"notNull": false
},
"serverIp": {
"name": "serverIp",
"type": "text",
@@ -680,36 +800,6 @@
"primaryKey": false,
"notNull": false
},
"githubClientId": {
"name": "githubClientId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubClientSecret": {
"name": "githubClientSecret",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubInstallationId": {
"name": "githubInstallationId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubPrivateKey": {
"name": "githubPrivateKey",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubWebhookSecret": {
"name": "githubWebhookSecret",
"type": "text",
"primaryKey": false,
"notNull": false
},
"letsEncryptEmail": {
"name": "letsEncryptEmail",
"type": "text",
@@ -729,19 +819,6 @@
"notNull": true,
"default": false
},
"enableLogRotation": {
"name": "enableLogRotation",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false
},
"licenseKey": {
"name": "licenseKey",
"type": "text",
"primaryKey": false,
"notNull": false
},
"authId": {
"name": "authId",
"type": "text",
@@ -2445,6 +2522,54 @@
"primaryKey": false,
"notNull": false
},
"gitlabProjectId": {
"name": "gitlabProjectId",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"gitlabRepository": {
"name": "gitlabRepository",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabOwner": {
"name": "gitlabOwner",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabBranch": {
"name": "gitlabBranch",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabPathNamespace": {
"name": "gitlabPathNamespace",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketRepository": {
"name": "bitbucketRepository",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketOwner": {
"name": "bitbucketOwner",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketBranch": {
"name": "bitbucketBranch",
"type": "text",
"primaryKey": false,
"notNull": false
},
"customGitUrl": {
"name": "customGitUrl",
"type": "text",
@@ -2496,6 +2621,24 @@
"type": "text",
"primaryKey": false,
"notNull": true
},
"githubId": {
"name": "githubId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitlabId": {
"name": "gitlabId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketId": {
"name": "bitbucketId",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
@@ -2525,6 +2668,45 @@
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"compose_githubId_github_githubId_fk": {
"name": "compose_githubId_github_githubId_fk",
"tableFrom": "compose",
"tableTo": "github",
"columnsFrom": [
"githubId"
],
"columnsTo": [
"githubId"
],
"onDelete": "set null",
"onUpdate": "no action"
},
"compose_gitlabId_gitlab_gitlabId_fk": {
"name": "compose_gitlabId_gitlab_gitlabId_fk",
"tableFrom": "compose",
"tableTo": "gitlab",
"columnsFrom": [
"gitlabId"
],
"columnsTo": [
"gitlabId"
],
"onDelete": "set null",
"onUpdate": "no action"
},
"compose_bitbucketId_bitbucket_bitbucketId_fk": {
"name": "compose_bitbucketId_bitbucket_bitbucketId_fk",
"tableFrom": "compose",
"tableTo": "bitbucket",
"columnsFrom": [
"bitbucketId"
],
"columnsTo": [
"bitbucketId"
],
"onDelete": "set null",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
@@ -2932,6 +3114,272 @@
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"public.git_provider": {
"name": "git_provider",
"schema": "",
"columns": {
"gitProviderId": {
"name": "gitProviderId",
"type": "text",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"providerType": {
"name": "providerType",
"type": "gitProviderType",
"typeSchema": "public",
"primaryKey": false,
"notNull": true,
"default": "'github'"
},
"createdAt": {
"name": "createdAt",
"type": "text",
"primaryKey": false,
"notNull": true
},
"authId": {
"name": "authId",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"git_provider_authId_auth_id_fk": {
"name": "git_provider_authId_auth_id_fk",
"tableFrom": "git_provider",
"tableTo": "auth",
"columnsFrom": [
"authId"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"public.bitbucket": {
"name": "bitbucket",
"schema": "",
"columns": {
"bitbucketId": {
"name": "bitbucketId",
"type": "text",
"primaryKey": true,
"notNull": true
},
"bitbucketUsername": {
"name": "bitbucketUsername",
"type": "text",
"primaryKey": false,
"notNull": false
},
"appPassword": {
"name": "appPassword",
"type": "text",
"primaryKey": false,
"notNull": false
},
"bitbucketWorkspaceName": {
"name": "bitbucketWorkspaceName",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitProviderId": {
"name": "gitProviderId",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"bitbucket_gitProviderId_git_provider_gitProviderId_fk": {
"name": "bitbucket_gitProviderId_git_provider_gitProviderId_fk",
"tableFrom": "bitbucket",
"tableTo": "git_provider",
"columnsFrom": [
"gitProviderId"
],
"columnsTo": [
"gitProviderId"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"public.github": {
"name": "github",
"schema": "",
"columns": {
"githubId": {
"name": "githubId",
"type": "text",
"primaryKey": true,
"notNull": true
},
"githubAppName": {
"name": "githubAppName",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubAppId": {
"name": "githubAppId",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"githubClientId": {
"name": "githubClientId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubClientSecret": {
"name": "githubClientSecret",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubInstallationId": {
"name": "githubInstallationId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubPrivateKey": {
"name": "githubPrivateKey",
"type": "text",
"primaryKey": false,
"notNull": false
},
"githubWebhookSecret": {
"name": "githubWebhookSecret",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gitProviderId": {
"name": "gitProviderId",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"github_gitProviderId_git_provider_gitProviderId_fk": {
"name": "github_gitProviderId_git_provider_gitProviderId_fk",
"tableFrom": "github",
"tableTo": "git_provider",
"columnsFrom": [
"gitProviderId"
],
"columnsTo": [
"gitProviderId"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"public.gitlab": {
"name": "gitlab",
"schema": "",
"columns": {
"gitlabId": {
"name": "gitlabId",
"type": "text",
"primaryKey": true,
"notNull": true
},
"application_id": {
"name": "application_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"redirect_uri": {
"name": "redirect_uri",
"type": "text",
"primaryKey": false,
"notNull": false
},
"secret": {
"name": "secret",
"type": "text",
"primaryKey": false,
"notNull": false
},
"access_token": {
"name": "access_token",
"type": "text",
"primaryKey": false,
"notNull": false
},
"refresh_token": {
"name": "refresh_token",
"type": "text",
"primaryKey": false,
"notNull": false
},
"group_name": {
"name": "group_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"expires_at": {
"name": "expires_at",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"gitProviderId": {
"name": "gitProviderId",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"gitlab_gitProviderId_git_provider_gitProviderId_fk": {
"name": "gitlab_gitProviderId_git_provider_gitProviderId_fk",
"tableFrom": "gitlab",
"tableTo": "git_provider",
"columnsFrom": [
"gitProviderId"
],
"columnsTo": [
"gitProviderId"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
}
},
"enums": {
@@ -2953,6 +3401,8 @@
"docker",
"git",
"github",
"gitlab",
"bitbucket",
"drop"
]
},
@@ -3053,6 +3503,8 @@
"values": [
"git",
"github",
"gitlab",
"bitbucket",
"raw"
]
},
@@ -3073,6 +3525,15 @@
"discord",
"email"
]
},
"public.gitProviderType": {
"name": "gitProviderType",
"schema": "public",
"values": [
"github",
"gitlab",
"bitbucket"
]
}
},
"schemas": {},

File diff suppressed because it is too large Load Diff

View File

@@ -236,15 +236,22 @@
{
"idx": 33,
"version": "6",
"when": 1724555040199,
"tag": "0033_sweet_black_bird",
"when": 1725250322137,
"tag": "0033_white_hawkeye",
"breakpoints": true
},
{
"idx": 34,
"version": "6",
"when": 1724631497207,
"tag": "0034_silent_slayback",
"when": 1725256397019,
"tag": "0034_aspiring_secret_warriors",
"breakpoints": true
},
{
"idx": 35,
"version": "6",
"when": 1725429324584,
"tag": "0035_cool_gravity",
"breakpoints": true
}
]