Prisma · Schema

Connection

A database connection string configuration

Properties

Name Type Description
id string Unique identifier for the connection
databaseId string Identifier of the associated database
type string Type of connection
connectionString string The connection string with credentials masked
createdAt string Timestamp when the connection was created
View JSON Schema on GitHub

JSON Schema

prisma-connection-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Connection",
  "title": "Connection",
  "type": "object",
  "description": "A database connection string configuration",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the connection"
    },
    "databaseId": {
      "type": "string",
      "description": "Identifier of the associated database"
    },
    "type": {
      "type": "string",
      "description": "Type of connection",
      "enum": [
        "prisma",
        "direct"
      ]
    },
    "connectionString": {
      "type": "string",
      "description": "The connection string with credentials masked"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the connection was created"
    }
  },
  "required": [
    "id",
    "databaseId",
    "type",
    "createdAt"
  ]
}