# The Database object

Database represents a Postgres database within a Branch.

## Attributes

- `name` (string)
  The resource name of the database.
   Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
- `parent` (string)
  The branch containing this database.
   Format: projects/{project_id}/branches/{branch_id}
- `create_time` (string)
  A timestamp indicating when the database was created.
- `update_time` (string)
  A timestamp indicating when the database was last updated.
- `spec` (object)
  The desired state of the Database.
  - `role` (string)
    The name of the role that owns the database.
     Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
    
     To change the owner, pass valid existing Role name when updating the Database
    
     A database always has an owner.
  - `postgres_database` (string)
    The name of the Postgres database.
    
     This expects a valid Postgres identifier as specified in the link below.
     https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS
     Required when creating the Database.
    
     To rename, pass a valid postgres identifier when updating the Database.
- `status` (object)
  The observed state of the Database.
  - `role` (string)
    The name of the role that owns the database.
     Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
  - `postgres_database` (string)
    The name of the Postgres database.
  - `database_id` (string)
    Part of the resource name.
- `database_id` (string)
  The part of the name, chosen by the user when the resource was created.

## Example

```json
{
  "name": "string",
  "parent": "string",
  "create_time": "string",
  "update_time": "string",
  "spec": {
    "role": "string",
    "postgres_database": "string"
  },
  "status": {
    "role": "string",
    "postgres_database": "string",
    "database_id": "string"
  },
  "database_id": "string"
}
```


