Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | serial | 10 | √ | nextval('petclinic.pets_id_seq'::regclass) |
|
|
Unique identifier for each pet, auto-generated via a sequence. |
||||
| name | varchar | 50 | null |
|
|
Name of the pet. |
|||||
| birth_date | date | 13 | √ | null |
|
|
Birth date of the pet. |
||||
| owner_id | int4 | 10 | null |
|
|
Foreign key referencing the owner in the owners table. |
|||||
| pet_type_id | int4 | 10 | null |
|
|
Foreign key referencing the type of pet in the pet_types table. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| pets_pkey | Primary key | Asc | id |