feat(template): per-experiment daily record template — rename/add/hide fields, custom_fields JSONB

This commit is contained in:
Experiments DB Dev
2026-04-15 13:56:17 -04:00
parent 80fb1c6e27
commit 86a56427b7
10 changed files with 570 additions and 189 deletions
+2
View File
@@ -29,6 +29,8 @@ export const experimentsApi = {
create: (data) => api.post('/experiments', data).then((r) => r.data),
update: (id, data) => api.put(`/experiments/${id}`, data).then((r) => r.data),
delete: (id) => api.delete(`/experiments/${id}`),
getTemplate: (id) => api.get(`/experiments/${id}/template`).then((r) => r.data),
updateTemplate: (id, template) => api.put(`/experiments/${id}/template`, template).then((r) => r.data),
};
// ── Animals ───────────────────────────────────────────────────────────────────