mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
2214 lines
54 KiB
JSON
2214 lines
54 KiB
JSON
{
|
|
"version": "6",
|
|
"dialect": "postgresql",
|
|
"tables": {
|
|
"public.application": {
|
|
"name": "application",
|
|
"schema": "",
|
|
"columns": {
|
|
"applicationId": {
|
|
"name": "applicationId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"appName": {
|
|
"name": "appName",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"description": {
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"env": {
|
|
"name": "env",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"memoryReservation": {
|
|
"name": "memoryReservation",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"memoryLimit": {
|
|
"name": "memoryLimit",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"cpuReservation": {
|
|
"name": "cpuReservation",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"cpuLimit": {
|
|
"name": "cpuLimit",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"title": {
|
|
"name": "title",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"enabled": {
|
|
"name": "enabled",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"subtitle": {
|
|
"name": "subtitle",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"command": {
|
|
"name": "command",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"refreshToken": {
|
|
"name": "refreshToken",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sourceType": {
|
|
"name": "sourceType",
|
|
"type": "sourceType",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'github'"
|
|
},
|
|
"repository": {
|
|
"name": "repository",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"owner": {
|
|
"name": "owner",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"branch": {
|
|
"name": "branch",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"buildPath": {
|
|
"name": "buildPath",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "'/'"
|
|
},
|
|
"autoDeploy": {
|
|
"name": "autoDeploy",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"username": {
|
|
"name": "username",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"password": {
|
|
"name": "password",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"dockerImage": {
|
|
"name": "dockerImage",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"customGitUrl": {
|
|
"name": "customGitUrl",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"customGitBranch": {
|
|
"name": "customGitBranch",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"customGitBuildPath": {
|
|
"name": "customGitBuildPath",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"customGitSSHKey": {
|
|
"name": "customGitSSHKey",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"dockerfile": {
|
|
"name": "dockerfile",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"applicationStatus": {
|
|
"name": "applicationStatus",
|
|
"type": "applicationStatus",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'idle'"
|
|
},
|
|
"buildType": {
|
|
"name": "buildType",
|
|
"type": "buildType",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'nixpacks'"
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"projectId": {
|
|
"name": "projectId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"application_projectId_project_projectId_fk": {
|
|
"name": "application_projectId_project_projectId_fk",
|
|
"tableFrom": "application",
|
|
"columnsFrom": [
|
|
"projectId"
|
|
],
|
|
"tableTo": "project",
|
|
"columnsTo": [
|
|
"projectId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"application_appName_unique": {
|
|
"name": "application_appName_unique",
|
|
"columns": [
|
|
"appName"
|
|
],
|
|
"nullsNotDistinct": false
|
|
}
|
|
}
|
|
},
|
|
"public.postgres": {
|
|
"name": "postgres",
|
|
"schema": "",
|
|
"columns": {
|
|
"postgresId": {
|
|
"name": "postgresId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"appName": {
|
|
"name": "appName",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"databaseName": {
|
|
"name": "databaseName",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"databaseUser": {
|
|
"name": "databaseUser",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"databasePassword": {
|
|
"name": "databasePassword",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"description": {
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"dockerImage": {
|
|
"name": "dockerImage",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"command": {
|
|
"name": "command",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"env": {
|
|
"name": "env",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"memoryReservation": {
|
|
"name": "memoryReservation",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"externalPort": {
|
|
"name": "externalPort",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"memoryLimit": {
|
|
"name": "memoryLimit",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"cpuReservation": {
|
|
"name": "cpuReservation",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"cpuLimit": {
|
|
"name": "cpuLimit",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"applicationStatus": {
|
|
"name": "applicationStatus",
|
|
"type": "applicationStatus",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'idle'"
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"projectId": {
|
|
"name": "projectId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"postgres_projectId_project_projectId_fk": {
|
|
"name": "postgres_projectId_project_projectId_fk",
|
|
"tableFrom": "postgres",
|
|
"columnsFrom": [
|
|
"projectId"
|
|
],
|
|
"tableTo": "project",
|
|
"columnsTo": [
|
|
"projectId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"postgres_appName_unique": {
|
|
"name": "postgres_appName_unique",
|
|
"columns": [
|
|
"appName"
|
|
],
|
|
"nullsNotDistinct": false
|
|
}
|
|
}
|
|
},
|
|
"public.user": {
|
|
"name": "user",
|
|
"schema": "",
|
|
"columns": {
|
|
"userId": {
|
|
"name": "userId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"token": {
|
|
"name": "token",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"isRegistered": {
|
|
"name": "isRegistered",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"expirationDate": {
|
|
"name": "expirationDate",
|
|
"type": "timestamp(3)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"canCreateProjects": {
|
|
"name": "canCreateProjects",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"canCreateServices": {
|
|
"name": "canCreateServices",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"canDeleteProjects": {
|
|
"name": "canDeleteProjects",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"canDeleteServices": {
|
|
"name": "canDeleteServices",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"canAccessToDocker": {
|
|
"name": "canAccessToDocker",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"canAccessToTraefikFiles": {
|
|
"name": "canAccessToTraefikFiles",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"accesedProjects": {
|
|
"name": "accesedProjects",
|
|
"type": "text[]",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "ARRAY[]::text[]"
|
|
},
|
|
"accesedServices": {
|
|
"name": "accesedServices",
|
|
"type": "text[]",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "ARRAY[]::text[]"
|
|
},
|
|
"adminId": {
|
|
"name": "adminId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"authId": {
|
|
"name": "authId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"user_adminId_admin_adminId_fk": {
|
|
"name": "user_adminId_admin_adminId_fk",
|
|
"tableFrom": "user",
|
|
"columnsFrom": [
|
|
"adminId"
|
|
],
|
|
"tableTo": "admin",
|
|
"columnsTo": [
|
|
"adminId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
},
|
|
"user_authId_auth_id_fk": {
|
|
"name": "user_authId_auth_id_fk",
|
|
"tableFrom": "user",
|
|
"columnsFrom": [
|
|
"authId"
|
|
],
|
|
"tableTo": "auth",
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"public.admin": {
|
|
"name": "admin",
|
|
"schema": "",
|
|
"columns": {
|
|
"adminId": {
|
|
"name": "adminId",
|
|
"type": "text",
|
|
"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",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"certificateType": {
|
|
"name": "certificateType",
|
|
"type": "certificateType",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'none'"
|
|
},
|
|
"host": {
|
|
"name": "host",
|
|
"type": "text",
|
|
"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
|
|
},
|
|
"letsEncryptEmail": {
|
|
"name": "letsEncryptEmail",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sshPrivateKey": {
|
|
"name": "sshPrivateKey",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"enableDockerCleanup": {
|
|
"name": "enableDockerCleanup",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"authId": {
|
|
"name": "authId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"admin_authId_auth_id_fk": {
|
|
"name": "admin_authId_auth_id_fk",
|
|
"tableFrom": "admin",
|
|
"columnsFrom": [
|
|
"authId"
|
|
],
|
|
"tableTo": "auth",
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"public.auth": {
|
|
"name": "auth",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"email": {
|
|
"name": "email",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"password": {
|
|
"name": "password",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"rol": {
|
|
"name": "rol",
|
|
"type": "Roles",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"image": {
|
|
"name": "image",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"secret": {
|
|
"name": "secret",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"is2FAEnabled": {
|
|
"name": "is2FAEnabled",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"auth_email_unique": {
|
|
"name": "auth_email_unique",
|
|
"columns": [
|
|
"email"
|
|
],
|
|
"nullsNotDistinct": false
|
|
}
|
|
}
|
|
},
|
|
"public.project": {
|
|
"name": "project",
|
|
"schema": "",
|
|
"columns": {
|
|
"projectId": {
|
|
"name": "projectId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"description": {
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"adminId": {
|
|
"name": "adminId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"project_adminId_admin_adminId_fk": {
|
|
"name": "project_adminId_admin_adminId_fk",
|
|
"tableFrom": "project",
|
|
"columnsFrom": [
|
|
"adminId"
|
|
],
|
|
"tableTo": "admin",
|
|
"columnsTo": [
|
|
"adminId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"public.domain": {
|
|
"name": "domain",
|
|
"schema": "",
|
|
"columns": {
|
|
"domainId": {
|
|
"name": "domainId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"host": {
|
|
"name": "host",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"https": {
|
|
"name": "https",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"port": {
|
|
"name": "port",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": 80
|
|
},
|
|
"path": {
|
|
"name": "path",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "'/'"
|
|
},
|
|
"uniqueConfigKey": {
|
|
"name": "uniqueConfigKey",
|
|
"type": "serial",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"applicationId": {
|
|
"name": "applicationId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"certificateType": {
|
|
"name": "certificateType",
|
|
"type": "certificateType",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'none'"
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"domain_applicationId_application_applicationId_fk": {
|
|
"name": "domain_applicationId_application_applicationId_fk",
|
|
"tableFrom": "domain",
|
|
"columnsFrom": [
|
|
"applicationId"
|
|
],
|
|
"tableTo": "application",
|
|
"columnsTo": [
|
|
"applicationId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"public.mariadb": {
|
|
"name": "mariadb",
|
|
"schema": "",
|
|
"columns": {
|
|
"mariadbId": {
|
|
"name": "mariadbId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"appName": {
|
|
"name": "appName",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"description": {
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"databaseName": {
|
|
"name": "databaseName",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"databaseUser": {
|
|
"name": "databaseUser",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"databasePassword": {
|
|
"name": "databasePassword",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"rootPassword": {
|
|
"name": "rootPassword",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"dockerImage": {
|
|
"name": "dockerImage",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"command": {
|
|
"name": "command",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"env": {
|
|
"name": "env",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"memoryReservation": {
|
|
"name": "memoryReservation",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"memoryLimit": {
|
|
"name": "memoryLimit",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"cpuReservation": {
|
|
"name": "cpuReservation",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"cpuLimit": {
|
|
"name": "cpuLimit",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"externalPort": {
|
|
"name": "externalPort",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"applicationStatus": {
|
|
"name": "applicationStatus",
|
|
"type": "applicationStatus",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'idle'"
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"projectId": {
|
|
"name": "projectId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"mariadb_projectId_project_projectId_fk": {
|
|
"name": "mariadb_projectId_project_projectId_fk",
|
|
"tableFrom": "mariadb",
|
|
"columnsFrom": [
|
|
"projectId"
|
|
],
|
|
"tableTo": "project",
|
|
"columnsTo": [
|
|
"projectId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"mariadb_appName_unique": {
|
|
"name": "mariadb_appName_unique",
|
|
"columns": [
|
|
"appName"
|
|
],
|
|
"nullsNotDistinct": false
|
|
}
|
|
}
|
|
},
|
|
"public.mongo": {
|
|
"name": "mongo",
|
|
"schema": "",
|
|
"columns": {
|
|
"mongoId": {
|
|
"name": "mongoId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"appName": {
|
|
"name": "appName",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"description": {
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"databaseUser": {
|
|
"name": "databaseUser",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"databasePassword": {
|
|
"name": "databasePassword",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"dockerImage": {
|
|
"name": "dockerImage",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"command": {
|
|
"name": "command",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"env": {
|
|
"name": "env",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"memoryReservation": {
|
|
"name": "memoryReservation",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"memoryLimit": {
|
|
"name": "memoryLimit",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"cpuReservation": {
|
|
"name": "cpuReservation",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"cpuLimit": {
|
|
"name": "cpuLimit",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"externalPort": {
|
|
"name": "externalPort",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"applicationStatus": {
|
|
"name": "applicationStatus",
|
|
"type": "applicationStatus",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'idle'"
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"projectId": {
|
|
"name": "projectId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"mongo_projectId_project_projectId_fk": {
|
|
"name": "mongo_projectId_project_projectId_fk",
|
|
"tableFrom": "mongo",
|
|
"columnsFrom": [
|
|
"projectId"
|
|
],
|
|
"tableTo": "project",
|
|
"columnsTo": [
|
|
"projectId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"mongo_appName_unique": {
|
|
"name": "mongo_appName_unique",
|
|
"columns": [
|
|
"appName"
|
|
],
|
|
"nullsNotDistinct": false
|
|
}
|
|
}
|
|
},
|
|
"public.mysql": {
|
|
"name": "mysql",
|
|
"schema": "",
|
|
"columns": {
|
|
"mysqlId": {
|
|
"name": "mysqlId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"appName": {
|
|
"name": "appName",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"description": {
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"databaseName": {
|
|
"name": "databaseName",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"databaseUser": {
|
|
"name": "databaseUser",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"databasePassword": {
|
|
"name": "databasePassword",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"rootPassword": {
|
|
"name": "rootPassword",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"dockerImage": {
|
|
"name": "dockerImage",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"command": {
|
|
"name": "command",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"env": {
|
|
"name": "env",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"memoryReservation": {
|
|
"name": "memoryReservation",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"memoryLimit": {
|
|
"name": "memoryLimit",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"cpuReservation": {
|
|
"name": "cpuReservation",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"cpuLimit": {
|
|
"name": "cpuLimit",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"externalPort": {
|
|
"name": "externalPort",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"applicationStatus": {
|
|
"name": "applicationStatus",
|
|
"type": "applicationStatus",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'idle'"
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"projectId": {
|
|
"name": "projectId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"mysql_projectId_project_projectId_fk": {
|
|
"name": "mysql_projectId_project_projectId_fk",
|
|
"tableFrom": "mysql",
|
|
"columnsFrom": [
|
|
"projectId"
|
|
],
|
|
"tableTo": "project",
|
|
"columnsTo": [
|
|
"projectId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"mysql_appName_unique": {
|
|
"name": "mysql_appName_unique",
|
|
"columns": [
|
|
"appName"
|
|
],
|
|
"nullsNotDistinct": false
|
|
}
|
|
}
|
|
},
|
|
"public.backup": {
|
|
"name": "backup",
|
|
"schema": "",
|
|
"columns": {
|
|
"backupId": {
|
|
"name": "backupId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"schedule": {
|
|
"name": "schedule",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"enabled": {
|
|
"name": "enabled",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"database": {
|
|
"name": "database",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"prefix": {
|
|
"name": "prefix",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"destinationId": {
|
|
"name": "destinationId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"databaseType": {
|
|
"name": "databaseType",
|
|
"type": "databaseType",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"postgresId": {
|
|
"name": "postgresId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"mariadbId": {
|
|
"name": "mariadbId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"mysqlId": {
|
|
"name": "mysqlId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"mongoId": {
|
|
"name": "mongoId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"backup_destinationId_destination_destinationId_fk": {
|
|
"name": "backup_destinationId_destination_destinationId_fk",
|
|
"tableFrom": "backup",
|
|
"columnsFrom": [
|
|
"destinationId"
|
|
],
|
|
"tableTo": "destination",
|
|
"columnsTo": [
|
|
"destinationId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
},
|
|
"backup_postgresId_postgres_postgresId_fk": {
|
|
"name": "backup_postgresId_postgres_postgresId_fk",
|
|
"tableFrom": "backup",
|
|
"columnsFrom": [
|
|
"postgresId"
|
|
],
|
|
"tableTo": "postgres",
|
|
"columnsTo": [
|
|
"postgresId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
},
|
|
"backup_mariadbId_mariadb_mariadbId_fk": {
|
|
"name": "backup_mariadbId_mariadb_mariadbId_fk",
|
|
"tableFrom": "backup",
|
|
"columnsFrom": [
|
|
"mariadbId"
|
|
],
|
|
"tableTo": "mariadb",
|
|
"columnsTo": [
|
|
"mariadbId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
},
|
|
"backup_mysqlId_mysql_mysqlId_fk": {
|
|
"name": "backup_mysqlId_mysql_mysqlId_fk",
|
|
"tableFrom": "backup",
|
|
"columnsFrom": [
|
|
"mysqlId"
|
|
],
|
|
"tableTo": "mysql",
|
|
"columnsTo": [
|
|
"mysqlId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
},
|
|
"backup_mongoId_mongo_mongoId_fk": {
|
|
"name": "backup_mongoId_mongo_mongoId_fk",
|
|
"tableFrom": "backup",
|
|
"columnsFrom": [
|
|
"mongoId"
|
|
],
|
|
"tableTo": "mongo",
|
|
"columnsTo": [
|
|
"mongoId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"public.destination": {
|
|
"name": "destination",
|
|
"schema": "",
|
|
"columns": {
|
|
"destinationId": {
|
|
"name": "destinationId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"accessKey": {
|
|
"name": "accessKey",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"secretAccessKey": {
|
|
"name": "secretAccessKey",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"bucket": {
|
|
"name": "bucket",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"region": {
|
|
"name": "region",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"endpoint": {
|
|
"name": "endpoint",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"adminId": {
|
|
"name": "adminId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"destination_adminId_admin_adminId_fk": {
|
|
"name": "destination_adminId_admin_adminId_fk",
|
|
"tableFrom": "destination",
|
|
"columnsFrom": [
|
|
"adminId"
|
|
],
|
|
"tableTo": "admin",
|
|
"columnsTo": [
|
|
"adminId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"public.deployment": {
|
|
"name": "deployment",
|
|
"schema": "",
|
|
"columns": {
|
|
"deploymentId": {
|
|
"name": "deploymentId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"title": {
|
|
"name": "title",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"status": {
|
|
"name": "status",
|
|
"type": "deploymentStatus",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "'running'"
|
|
},
|
|
"logPath": {
|
|
"name": "logPath",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"applicationId": {
|
|
"name": "applicationId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"deployment_applicationId_application_applicationId_fk": {
|
|
"name": "deployment_applicationId_application_applicationId_fk",
|
|
"tableFrom": "deployment",
|
|
"columnsFrom": [
|
|
"applicationId"
|
|
],
|
|
"tableTo": "application",
|
|
"columnsTo": [
|
|
"applicationId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"public.mount": {
|
|
"name": "mount",
|
|
"schema": "",
|
|
"columns": {
|
|
"mountId": {
|
|
"name": "mountId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"type": {
|
|
"name": "type",
|
|
"type": "mountType",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"hostPath": {
|
|
"name": "hostPath",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"volumeName": {
|
|
"name": "volumeName",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"content": {
|
|
"name": "content",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"serviceType": {
|
|
"name": "serviceType",
|
|
"type": "serviceType",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'application'"
|
|
},
|
|
"mountPath": {
|
|
"name": "mountPath",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"applicationId": {
|
|
"name": "applicationId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"postgresId": {
|
|
"name": "postgresId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"mariadbId": {
|
|
"name": "mariadbId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"mongoId": {
|
|
"name": "mongoId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"mysqlId": {
|
|
"name": "mysqlId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"redisId": {
|
|
"name": "redisId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"mount_applicationId_application_applicationId_fk": {
|
|
"name": "mount_applicationId_application_applicationId_fk",
|
|
"tableFrom": "mount",
|
|
"columnsFrom": [
|
|
"applicationId"
|
|
],
|
|
"tableTo": "application",
|
|
"columnsTo": [
|
|
"applicationId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
},
|
|
"mount_postgresId_postgres_postgresId_fk": {
|
|
"name": "mount_postgresId_postgres_postgresId_fk",
|
|
"tableFrom": "mount",
|
|
"columnsFrom": [
|
|
"postgresId"
|
|
],
|
|
"tableTo": "postgres",
|
|
"columnsTo": [
|
|
"postgresId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
},
|
|
"mount_mariadbId_mariadb_mariadbId_fk": {
|
|
"name": "mount_mariadbId_mariadb_mariadbId_fk",
|
|
"tableFrom": "mount",
|
|
"columnsFrom": [
|
|
"mariadbId"
|
|
],
|
|
"tableTo": "mariadb",
|
|
"columnsTo": [
|
|
"mariadbId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
},
|
|
"mount_mongoId_mongo_mongoId_fk": {
|
|
"name": "mount_mongoId_mongo_mongoId_fk",
|
|
"tableFrom": "mount",
|
|
"columnsFrom": [
|
|
"mongoId"
|
|
],
|
|
"tableTo": "mongo",
|
|
"columnsTo": [
|
|
"mongoId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
},
|
|
"mount_mysqlId_mysql_mysqlId_fk": {
|
|
"name": "mount_mysqlId_mysql_mysqlId_fk",
|
|
"tableFrom": "mount",
|
|
"columnsFrom": [
|
|
"mysqlId"
|
|
],
|
|
"tableTo": "mysql",
|
|
"columnsTo": [
|
|
"mysqlId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
},
|
|
"mount_redisId_redis_redisId_fk": {
|
|
"name": "mount_redisId_redis_redisId_fk",
|
|
"tableFrom": "mount",
|
|
"columnsFrom": [
|
|
"redisId"
|
|
],
|
|
"tableTo": "redis",
|
|
"columnsTo": [
|
|
"redisId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"public.certificate": {
|
|
"name": "certificate",
|
|
"schema": "",
|
|
"columns": {
|
|
"certificateId": {
|
|
"name": "certificateId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"certificateData": {
|
|
"name": "certificateData",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"privateKey": {
|
|
"name": "privateKey",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"certificatePath": {
|
|
"name": "certificatePath",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"autoRenew": {
|
|
"name": "autoRenew",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"certificate_certificatePath_unique": {
|
|
"name": "certificate_certificatePath_unique",
|
|
"columns": [
|
|
"certificatePath"
|
|
],
|
|
"nullsNotDistinct": false
|
|
}
|
|
}
|
|
},
|
|
"public.session": {
|
|
"name": "session",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"user_id": {
|
|
"name": "user_id",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"session_user_id_auth_id_fk": {
|
|
"name": "session_user_id_auth_id_fk",
|
|
"tableFrom": "session",
|
|
"columnsFrom": [
|
|
"user_id"
|
|
],
|
|
"tableTo": "auth",
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"public.redirect": {
|
|
"name": "redirect",
|
|
"schema": "",
|
|
"columns": {
|
|
"redirectId": {
|
|
"name": "redirectId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"regex": {
|
|
"name": "regex",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"replacement": {
|
|
"name": "replacement",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"permanent": {
|
|
"name": "permanent",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"uniqueConfigKey": {
|
|
"name": "uniqueConfigKey",
|
|
"type": "serial",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"applicationId": {
|
|
"name": "applicationId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"redirect_applicationId_application_applicationId_fk": {
|
|
"name": "redirect_applicationId_application_applicationId_fk",
|
|
"tableFrom": "redirect",
|
|
"columnsFrom": [
|
|
"applicationId"
|
|
],
|
|
"tableTo": "application",
|
|
"columnsTo": [
|
|
"applicationId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"public.security": {
|
|
"name": "security",
|
|
"schema": "",
|
|
"columns": {
|
|
"securityId": {
|
|
"name": "securityId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"username": {
|
|
"name": "username",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"password": {
|
|
"name": "password",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"applicationId": {
|
|
"name": "applicationId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"security_applicationId_application_applicationId_fk": {
|
|
"name": "security_applicationId_application_applicationId_fk",
|
|
"tableFrom": "security",
|
|
"columnsFrom": [
|
|
"applicationId"
|
|
],
|
|
"tableTo": "application",
|
|
"columnsTo": [
|
|
"applicationId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"security_username_applicationId_unique": {
|
|
"name": "security_username_applicationId_unique",
|
|
"columns": [
|
|
"username",
|
|
"applicationId"
|
|
],
|
|
"nullsNotDistinct": false
|
|
}
|
|
}
|
|
},
|
|
"public.port": {
|
|
"name": "port",
|
|
"schema": "",
|
|
"columns": {
|
|
"portId": {
|
|
"name": "portId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"publishedPort": {
|
|
"name": "publishedPort",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"targetPort": {
|
|
"name": "targetPort",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"protocol": {
|
|
"name": "protocol",
|
|
"type": "protocolType",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"applicationId": {
|
|
"name": "applicationId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"port_applicationId_application_applicationId_fk": {
|
|
"name": "port_applicationId_application_applicationId_fk",
|
|
"tableFrom": "port",
|
|
"columnsFrom": [
|
|
"applicationId"
|
|
],
|
|
"tableTo": "application",
|
|
"columnsTo": [
|
|
"applicationId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"public.redis": {
|
|
"name": "redis",
|
|
"schema": "",
|
|
"columns": {
|
|
"redisId": {
|
|
"name": "redisId",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"appName": {
|
|
"name": "appName",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"description": {
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"password": {
|
|
"name": "password",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"dockerImage": {
|
|
"name": "dockerImage",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"command": {
|
|
"name": "command",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"env": {
|
|
"name": "env",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"memoryReservation": {
|
|
"name": "memoryReservation",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"memoryLimit": {
|
|
"name": "memoryLimit",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"cpuReservation": {
|
|
"name": "cpuReservation",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"cpuLimit": {
|
|
"name": "cpuLimit",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"externalPort": {
|
|
"name": "externalPort",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"applicationStatus": {
|
|
"name": "applicationStatus",
|
|
"type": "applicationStatus",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'idle'"
|
|
},
|
|
"projectId": {
|
|
"name": "projectId",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"redis_projectId_project_projectId_fk": {
|
|
"name": "redis_projectId_project_projectId_fk",
|
|
"tableFrom": "redis",
|
|
"columnsFrom": [
|
|
"projectId"
|
|
],
|
|
"tableTo": "project",
|
|
"columnsTo": [
|
|
"projectId"
|
|
],
|
|
"onUpdate": "no action",
|
|
"onDelete": "cascade"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"redis_appName_unique": {
|
|
"name": "redis_appName_unique",
|
|
"columns": [
|
|
"appName"
|
|
],
|
|
"nullsNotDistinct": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"enums": {
|
|
"public.buildType": {
|
|
"name": "buildType",
|
|
"schema": "public",
|
|
"values": [
|
|
"dockerfile",
|
|
"heroku_buildpacks",
|
|
"paketo_buildpacks",
|
|
"nixpacks"
|
|
]
|
|
},
|
|
"public.sourceType": {
|
|
"name": "sourceType",
|
|
"schema": "public",
|
|
"values": [
|
|
"docker",
|
|
"git",
|
|
"github"
|
|
]
|
|
},
|
|
"public.Roles": {
|
|
"name": "Roles",
|
|
"schema": "public",
|
|
"values": [
|
|
"admin",
|
|
"user"
|
|
]
|
|
},
|
|
"public.databaseType": {
|
|
"name": "databaseType",
|
|
"schema": "public",
|
|
"values": [
|
|
"postgres",
|
|
"mariadb",
|
|
"mysql",
|
|
"mongo"
|
|
]
|
|
},
|
|
"public.deploymentStatus": {
|
|
"name": "deploymentStatus",
|
|
"schema": "public",
|
|
"values": [
|
|
"running",
|
|
"done",
|
|
"error"
|
|
]
|
|
},
|
|
"public.mountType": {
|
|
"name": "mountType",
|
|
"schema": "public",
|
|
"values": [
|
|
"bind",
|
|
"volume",
|
|
"file"
|
|
]
|
|
},
|
|
"public.serviceType": {
|
|
"name": "serviceType",
|
|
"schema": "public",
|
|
"values": [
|
|
"application",
|
|
"postgres",
|
|
"mysql",
|
|
"mariadb",
|
|
"mongo",
|
|
"redis"
|
|
]
|
|
},
|
|
"public.protocolType": {
|
|
"name": "protocolType",
|
|
"schema": "public",
|
|
"values": [
|
|
"tcp",
|
|
"udp"
|
|
]
|
|
},
|
|
"public.applicationStatus": {
|
|
"name": "applicationStatus",
|
|
"schema": "public",
|
|
"values": [
|
|
"idle",
|
|
"running",
|
|
"done",
|
|
"error"
|
|
]
|
|
},
|
|
"public.certificateType": {
|
|
"name": "certificateType",
|
|
"schema": "public",
|
|
"values": [
|
|
"letsencrypt",
|
|
"none"
|
|
]
|
|
}
|
|
},
|
|
"schemas": {},
|
|
"_meta": {
|
|
"schemas": {},
|
|
"tables": {},
|
|
"columns": {}
|
|
},
|
|
"id": "7bb4bbcf-791c-4888-919e-f74bc0528b5f",
|
|
"prevId": "5a1d3f2b-9c31-4125-9645-015170550b51"
|
|
} |