From 3223d93cb3c77ab02aa0a35f2a8314e447cee9a4 Mon Sep 17 00:00:00 2001
From: Benedikt Peetz <benedikt.peetz@b-peetz.de>
Date: Thu, 9 Jul 2026 21:43:23 +0200
Subject: chore: Separate daemon, client, server, and lib into crates

---
 .../db/client-migrations/20220505083406_create-events.sql     | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 crates/daemon/db/client-migrations/20220505083406_create-events.sql

(limited to 'crates/daemon/db/client-migrations/20220505083406_create-events.sql')

diff --git a/crates/daemon/db/client-migrations/20220505083406_create-events.sql b/crates/daemon/db/client-migrations/20220505083406_create-events.sql
new file mode 100644
index 00000000..f6cafeba
--- /dev/null
+++ b/crates/daemon/db/client-migrations/20220505083406_create-events.sql
@@ -0,0 +1,11 @@
+create table if not exists events (
+	id text primary key,
+	timestamp integer not null,
+	hostname text not null,
+	event_type text not null,
+
+	history_id text not null
+);
+
+-- Ensure there is only ever one of each event type per history item
+create unique index history_event_idx ON events(event_type, history_id);
-- 
cgit v1.3.1

