pets

-1 rows


Description

Stores pet information, linking each pet to its owner and pet type.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id serial 10 nextval('petclinic.pets_id_seq'::regclass)
visits.pet_id fk_pet C

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
owners.id fk_owner C

Foreign key referencing the owner in the owners table.

pet_type_id int4 10 null
pet_types.id fk_pet_type R

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

Relationships