1194 lines · 27.1 KB · Text
RawDownload
enum applicationStatus {  idle  running  done  error} enum backupType {  database  compose} enum buildType {  dockerfile  heroku_buildpacks  paketo_buildpacks  nixpacks  static  railpack} enum certificateType {  letsencrypt  none  custom} enum composeType {  "docker-compose"  stack} enum databaseType {  postgres  mariadb  mysql  mongo  "web-server"} enum deploymentStatus {  running  done  error  cancelled} enum domainType {  compose  application  preview} enum gitProviderType {  github  gitlab  bitbucket  gitea} enum mountType {  bind  volume  file} enum notificationType {  slack  telegram  discord  email  gotify  ntfy  custom  lark} enum protocolType {  tcp  udp} enum publishModeType {  ingress  host} enum RegistryType {  selfHosted  cloud} enum scheduleType {  application  compose  server  "dokploy-server"} enum serverStatus {  active  inactive} enum serviceType {  application  postgres  mysql  mariadb  mongo  redis  compose} enum shellType {  bash  sh} enum sourceType {  docker  git  github  gitlab  bitbucket  gitea  drop} enum sourceTypeCompose {  git  github  gitlab  bitbucket  gitea  raw} enum triggerType {  push  tag} table account {  id text [pk, not null]  account_id text [not null]  provider_id text [not null]  user_id text [not null]  access_token text  refresh_token text  id_token text  access_token_expires_at timestamp  refresh_token_expires_at timestamp  scope text  password text  is2FAEnabled boolean [not null, default: false]  created_at timestamp [not null]  updated_at timestamp [not null]  resetPasswordToken text  resetPasswordExpiresAt text  confirmationToken text  confirmationExpiresAt text} table ai {  aiId text [pk, not null]  name text [not null]  apiUrl text [not null]  apiKey text [not null]  model text [not null]  isEnabled boolean [not null, default: true]  organizationId text [not null]  createdAt text [not null]} table apikey {  id text [pk, not null]  name text  start text  prefix text  key text [not null]  user_id text [not null]  refill_interval integer  refill_amount integer  last_refill_at timestamp  enabled boolean  rate_limit_enabled boolean  rate_limit_time_window integer  rate_limit_max integer  request_count integer  remaining integer  last_request timestamp  expires_at timestamp  created_at timestamp [not null]  updated_at timestamp [not null]  permissions text  metadata text} table application {  applicationId text [pk, not null]  name text [not null]  appName text [not null, unique]  description text  env text  previewEnv text  watchPaths text[]  previewBuildArgs text  previewBuildSecrets text  previewLabels text[]  previewWildcard text  previewPort integer [default: 3000]  previewHttps boolean [not null, default: false]  previewPath text [default: '/']  certificateType certificateType [not null, default: 'none']  previewCustomCertResolver text  previewLimit integer [default: 3]  isPreviewDeploymentsActive boolean [default: false]  previewRequireCollaboratorPermissions boolean [default: true]  rollbackActive boolean [default: false]  buildArgs text  buildSecrets text  memoryReservation text  memoryLimit text  cpuReservation text  cpuLimit text  title text  enabled boolean  subtitle text  command text  refreshToken text  sourceType sourceType [not null, default: 'github']  cleanCache boolean [default: false]  repository text  owner text  branch text  buildPath text [default: '/']  triggerType triggerType [default: 'push']  autoDeploy boolean  gitlabProjectId integer  gitlabRepository text  gitlabOwner text  gitlabBranch text  gitlabBuildPath text [default: '/']  gitlabPathNamespace text  giteaRepository text  giteaOwner text  giteaBranch text  giteaBuildPath text [default: '/']  bitbucketRepository text  bitbucketOwner text  bitbucketBranch text  bitbucketBuildPath text [default: '/']  username text  password text  dockerImage text  registryUrl text  customGitUrl text  customGitBranch text  customGitBuildPath text  customGitSSHKeyId text  enableSubmodules boolean [not null, default: false]  dockerfile text  dockerContextPath text  dockerBuildStage text  dropBuildPath text  healthCheckSwarm json  restartPolicySwarm json  placementSwarm json  updateConfigSwarm json  rollbackConfigSwarm json  modeSwarm json  labelsSwarm json  networkSwarm json  stopGracePeriodSwarm bigint  replicas integer [not null, default: 1]  applicationStatus applicationStatus [not null, default: 'idle']  buildType buildType [not null, default: 'nixpacks']  railpackVersion text [default: '0.15.4']  herokuVersion text [default: '24']  publishDirectory text  isStaticSpa boolean  createdAt text [not null]  registryId text  environmentId text [not null]  githubId text  gitlabId text  giteaId text  bitbucketId text  serverId text} table backup {  backupId text [pk, not null]  appName text [not null, unique]  schedule text [not null]  enabled boolean  database text [not null]  prefix text [not null]  serviceName text  destinationId text [not null]  keepLatestCount integer  backupType backupType [not null, default: 'database']  databaseType databaseType [not null]  composeId text  postgresId text  mariadbId text  mysqlId text  mongoId text  userId text  metadata jsonb} table bitbucket {  bitbucketId text [pk, not null]  bitbucketUsername text  bitbucketEmail text  appPassword text  apiToken text  bitbucketWorkspaceName text  gitProviderId text [not null]} table certificate {  certificateId text [pk, not null]  name text [not null]  certificateData text [not null]  privateKey text [not null]  certificatePath text [not null, unique]  autoRenew boolean  organizationId text [not null]  serverId text} table compose {  composeId text [pk, not null]  name text [not null]  appName text [not null]  description text  env text  composeFile text [not null, default: '']  refreshToken text  sourceType sourceTypeCompose [not null, default: 'github']  composeType composeType [not null, default: 'docker-compose']  repository text  owner text  branch text  autoDeploy boolean  gitlabProjectId integer  gitlabRepository text  gitlabOwner text  gitlabBranch text  gitlabPathNamespace text  bitbucketRepository text  bitbucketOwner text  bitbucketBranch text  giteaRepository text  giteaOwner text  giteaBranch text  customGitUrl text  customGitBranch text  customGitSSHKeyId text  command text [not null, default: '']  enableSubmodules boolean [not null, default: false]  composePath text [not null, default: './docker-compose.yml']  suffix text [not null, default: '']  randomize boolean [not null, default: false]  isolatedDeployment boolean [not null, default: false]  isolatedDeploymentsVolume boolean [not null, default: false]  triggerType triggerType [default: 'push']  composeStatus applicationStatus [not null, default: 'idle']  environmentId text [not null]  createdAt text [not null]  watchPaths text[]  githubId text  gitlabId text  bitbucketId text  giteaId text  serverId text} table custom {  customId text [pk, not null]  endpoint text [not null]  headers text} table deployment {  deploymentId text [pk, not null]  title text [not null]  description text  status deploymentStatus [default: 'running']  logPath text [not null]  pid text  applicationId text  composeId text  serverId text  isPreviewDeployment boolean [default: false]  previewDeploymentId text  createdAt text [not null]  startedAt text  finishedAt text  errorMessage text  scheduleId text  backupId text  rollbackId text  volumeBackupId text} table destination {  destinationId text [pk, not null]  name text [not null]  provider text  accessKey text [not null]  secretAccessKey text [not null]  bucket text [not null]  region text [not null]  endpoint text [not null]  organizationId text [not null]  createdAt timestamp [not null, default: `now()`]} table discord {  discordId text [pk, not null]  webhookUrl text [not null]  decoration boolean} table domain {  domainId text [pk, not null]  host text [not null]  https boolean [not null, default: false]  port integer [default: 3000]  path text [default: '/']  serviceName text  domainType domainType [default: 'application']  uniqueConfigKey serial [not null, increment]  createdAt text [not null]  composeId text  customCertResolver text  applicationId text  previewDeploymentId text  certificateType certificateType [not null, default: 'none']  internalPath text [default: '/']  stripPath boolean [not null, default: false]} table email {  emailId text [pk, not null]  smtpServer text [not null]  smtpPort integer [not null]  username text [not null]  password text [not null]  fromAddress text [not null]  toAddress text[] [not null]} table environment {  environmentId text [pk, not null]  name text [not null]  description text  createdAt text [not null]  env text [not null, default: '']  projectId text [not null]} table git_provider {  gitProviderId text [pk, not null]  name text [not null]  providerType gitProviderType [not null, default: 'github']  createdAt text [not null]  organizationId text [not null]  userId text [not null]} table gitea {  giteaId text [pk, not null]  giteaUrl text [not null, default: 'https://gitea.com']  redirect_uri text  client_id text  client_secret text  gitProviderId text [not null]  access_token text  refresh_token text  expires_at integer  scopes text [default: 'repo,repo:status,read:user,read:org']  last_authenticated_at integer} table github {  githubId text [pk, not null]  githubAppName text  githubAppId integer  githubClientId text  githubClientSecret text  githubInstallationId text  githubPrivateKey text  githubWebhookSecret text  gitProviderId text [not null]}

Lines 1–500 of 1194.