Prisma · Schema
Environment
An environment represents a deployment stage within a project, such as development, staging, or production, with its own database connection and API keys.
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Unique identifier for the environment |
| name | string | Display name of the environment |
| projectId | string | Identifier of the parent project |
| connectionString | string | Database connection string for this environment |
| createdAt | string | Timestamp when the environment was created |
| updatedAt | string | Timestamp when the environment was last updated |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/Environment",
"title": "Environment",
"type": "object",
"description": "An environment represents a deployment stage within a project, such as development, staging, or production, with its own database connection and API keys.",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the environment",
"examples": [
"env_abc123def456"
]
},
"name": {
"type": "string",
"description": "Display name of the environment",
"examples": [
"Production"
]
},
"projectId": {
"type": "string",
"description": "Identifier of the parent project"
},
"connectionString": {
"type": "string",
"description": "Database connection string for this environment",
"examples": [
"prisma://accelerate.prisma-data.net/?api_key=ey..."
]
},
"createdAt": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the environment was created"
},
"updatedAt": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the environment was last updated"
}
},
"required": [
"id",
"name",
"projectId",
"createdAt",
"updatedAt"
]
}