mirror of
https://github.com/temetro/temetro.git
synced 2026-08-06 17:07:40 +00:00
67fdf15de4
Add an `inventory` resource mirroring the prescriptions feature end-to-end: Drizzle table (org-scoped, indexed), domain type, zod validation, service (list/get/create/update/delete), and an RBAC-gated CRUD router mounted at /api/inventory. Grant the new `inventory` statement to roles — pharmacy gets read/write, full clinicians read/write/delete, reception/lab none — in both the backend access control and (mirrored) the frontend. Record writes in the activity log via a new `inventory` entity type. Includes the migration and an idempotent demo seed script. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
97 lines
1.9 KiB
JSON
97 lines
1.9 KiB
JSON
{
|
|
"version": "7",
|
|
"dialect": "postgresql",
|
|
"entries": [
|
|
{
|
|
"idx": 0,
|
|
"version": "7",
|
|
"when": 1780413912874,
|
|
"tag": "0000_small_sir_ram",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 1,
|
|
"version": "7",
|
|
"when": 1780591375930,
|
|
"tag": "0001_boring_puck",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 2,
|
|
"version": "7",
|
|
"when": 1780849813505,
|
|
"tag": "0002_fluffy_longshot",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 3,
|
|
"version": "7",
|
|
"when": 1780850147682,
|
|
"tag": "0003_lame_rawhide_kid",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 4,
|
|
"version": "7",
|
|
"when": 1780850364853,
|
|
"tag": "0004_dizzy_scarlet_spider",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 5,
|
|
"version": "7",
|
|
"when": 1780850717058,
|
|
"tag": "0005_true_gwen_stacy",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 6,
|
|
"version": "7",
|
|
"when": 1780856647280,
|
|
"tag": "0006_square_wither",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 7,
|
|
"version": "7",
|
|
"when": 1780933857005,
|
|
"tag": "0007_skinny_bloodstrike",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 8,
|
|
"version": "7",
|
|
"when": 1780937195597,
|
|
"tag": "0008_luxuriant_blue_blade",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 9,
|
|
"version": "7",
|
|
"when": 1781022080228,
|
|
"tag": "0009_melted_puck",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 10,
|
|
"version": "7",
|
|
"when": 1781111039837,
|
|
"tag": "0010_eager_hellfire_club",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 11,
|
|
"version": "7",
|
|
"when": 1781196252617,
|
|
"tag": "0011_remap_viewer_to_member",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 12,
|
|
"version": "7",
|
|
"when": 1781279151289,
|
|
"tag": "0012_wonderful_terrax",
|
|
"breakpoints": true
|
|
}
|
|
]
|
|
} |