63ed91e5f3
GRO-1850: Adds temperament_score, temperament_flags, medical_alerts, and preferred_cuts to the pets table. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
210 lines
5.1 KiB
JSON
210 lines
5.1 KiB
JSON
{
|
|
"id": "0034_extend_pet_profile_columns",
|
|
"prevId": "b3a381ca-f7a4-450f-aa7e-fdc2d652dc97",
|
|
"version": "7",
|
|
"dialect": "postgresql",
|
|
"tables": {
|
|
"public.pets": {
|
|
"name": "pets",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"default": "gen_random_uuid()"
|
|
},
|
|
"client_id": {
|
|
"name": "client_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"species": {
|
|
"name": "species",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"breed": {
|
|
"name": "breed",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"weight_kg": {
|
|
"name": "weight_kg",
|
|
"type": "numeric(5, 2)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"date_of_birth": {
|
|
"name": "date_of_birth",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"health_alerts": {
|
|
"name": "health_alerts",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"grooming_notes": {
|
|
"name": "grooming_notes",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"cut_style": {
|
|
"name": "cut_style",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"shampoo_preference": {
|
|
"name": "shampoo_preference",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"special_care_notes": {
|
|
"name": "special_care_notes",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"coat_type": {
|
|
"name": "coat_type",
|
|
"type": "coat_type",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"pet_size_category": {
|
|
"name": "pet_size_category",
|
|
"type": "pet_size_category",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"temperament_score": {
|
|
"name": "temperament_score",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"temperament_flags": {
|
|
"name": "temperament_flags",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "'[]'::jsonb"
|
|
},
|
|
"medical_alerts": {
|
|
"name": "medical_alerts",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "'[]'::jsonb"
|
|
},
|
|
"preferred_cuts": {
|
|
"name": "preferred_cuts",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "'[]'::jsonb"
|
|
},
|
|
"custom_fields": {
|
|
"name": "custom_fields",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'{}'::jsonb"
|
|
},
|
|
"photo_key": {
|
|
"name": "photo_key",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"photo_uploaded_at": {
|
|
"name": "photo_uploaded_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"image": {
|
|
"name": "image",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"pets_client_id_clients_id_fk": {
|
|
"name": "pets_client_id_clients_id_fk",
|
|
"tableFrom": "pets",
|
|
"tableTo": "clients",
|
|
"columnsFrom": [
|
|
"client_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
}
|
|
},
|
|
"enums": {
|
|
"coat_type": {
|
|
"name": "coat_type",
|
|
"values": [
|
|
"short",
|
|
"medium",
|
|
"long",
|
|
"wire",
|
|
"double",
|
|
"hairless",
|
|
"curly"
|
|
]
|
|
},
|
|
"pet_size_category": {
|
|
"name": "pet_size_category",
|
|
"values": [
|
|
"small",
|
|
"medium",
|
|
"large",
|
|
"extra_large"
|
|
]
|
|
}
|
|
},
|
|
"nativeEnums": {}
|
|
} |