9b43bdab99
fix(db): add vet_name, result, next_due to healthMigrations ALTER TABLE guards
...
Existing databases were missing these 3 columns because they were defined
in the CREATE TABLE but not in the healthMigrations array used for
ALTER TABLE on pre-existing DBs. This caused the 'table health_records
has no column named vet_name' error in the Add Health Record modal.
2026-03-10 12:52:04 -05:00
97efc937c0
feat(server): register /api/genetics route for Phase 4b
2026-03-09 23:25:15 -05:00
d9cd0bec58
feat(api): add genetics.js — DNA panel CRUD + pairing-risk endpoint
2026-03-09 23:23:46 -05:00
8635483332
feat(api): rewrite health.js with OFA clearance fields, clearance-summary, chic-eligible endpoints
2026-03-09 23:22:55 -05:00
91ad50655c
feat(db): Phase 4b schema — OFA clearances, genetic_tests, cancer_history, eligibility fields
2026-03-09 23:21:44 -05:00
0ade8586f9
feat(dogs): add hard DELETE /api/dogs/:id with cascade cleanup
2026-03-09 22:57:43 -05:00
43939c664e
fix(settings): rewrite route to match single-row column schema (was double-encoded base64 + wrong key/value schema)
2026-03-09 22:34:13 -05:00
6ac1518c40
fix(server): call initDatabase() with no args to match updated db/init.js; remove duplicate health route
2026-03-09 22:29:20 -05:00
421ea5cb58
feat(api): expose is_champion on all dog queries incl sire/dam/offspring joins
2026-03-09 22:24:39 -05:00
6903e66419
feat(db): add is_champion to dogs, kennel settings columns, migrate existing rows
2026-03-09 22:23:41 -05:00
4f7a2ad0f9
feat: wire settings route into Express server
2026-03-09 22:02:21 -05:00
6ce9aebabd
feat: add settings API route for kennel info
2026-03-09 22:01:12 -05:00
683fef7e9c
feat: add is_champion column to dogs table and settings table
2026-03-09 22:00:40 -05:00
6e37abf6e8
feat: add puppy weight/health log endpoints to litters router
2026-03-09 21:02:15 -05:00
d7bad19275
feat: Add breeding date suggestion window endpoint
2026-03-09 20:30:42 -05:00
25e4035436
fix: Prevent /static and /uploads paths from falling through to React catch-all
2026-03-09 19:10:48 -05:00
422ea5cf7f
feat: Serve /static directory for logo and branding assets
2026-03-09 18:49:52 -05:00
6f83f853ae
Clean: Remove migrations - use clean init only
2026-03-09 02:03:02 -05:00
d311bc24a7
Clean: Proper sire/dam handling via parents table with logging
2026-03-09 02:01:18 -05:00
3ae3458dfc
Clean: Fresh database init with parents table - no migrations
2026-03-09 01:59:52 -05:00
eec18daeea
Fix: Remove weight/height columns - match actual schema
2026-03-09 01:38:42 -05:00
e62d35041f
Fix: Don't return sire/dam columns from dogs table, select explicit fields
2026-03-09 01:29:40 -05:00
a11dec6d29
Add automatic migration system on startup
2026-03-09 00:58:39 -05:00
15f455387d
Add automatic migration system with schema validation
2026-03-09 00:58:19 -05:00
cc5af29c11
Enhanced litters API with puppy linking and litter_id support
2026-03-09 00:07:26 -05:00
a246e5f84f
Add migration to add litter_id column to dogs table
2026-03-09 00:06:41 -05:00
56fb9cb7af
Fix: Convert empty microchip strings to NULL in database
2026-03-08 23:55:38 -05:00
f1e5b422b0
Add migration script to fix microchip UNIQUE constraint
2026-03-08 23:40:02 -05:00
bb0f5dd9b8
Fix: Remove UNIQUE constraint from microchip field to allow NULL values
2026-03-08 23:39:22 -05:00
3d76ccf3be
Add breeding/heat cycle API routes
2026-03-08 22:46:21 -05:00
a2b39957fa
Add health records API routes
2026-03-08 22:45:54 -05:00
ac516a0911
Add litters API routes
2026-03-08 22:45:27 -05:00
df252e828a
Add pedigree API routes
2026-03-08 22:45:07 -05:00
e8c7d77c52
Add dogs API routes
2026-03-08 22:44:23 -05:00
d99a7b0622
Add database initialization and schema
2026-03-08 22:43:51 -05:00
7176527639
Add main server application file
2026-03-08 22:43:27 -05:00