Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

Make `id` as UUID in `DATA_APIKEYS` (#52)

Patcher99250b8da312e2
diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md
index 64ff94b2..db0ef72e 100644
--- a/.github/ISSUE_TEMPLATE/bug.md
+++ b/.github/ISSUE_TEMPLATE/bug.md
@@ -27,7 +27,7 @@ Pictures can say a thousand words and can be super helpful!
- Doku Version: [e.g., 0.0.1]
- DokuMetry SDK: [Python or NodeJS]
- DokuMetry SDK Version: [e.g., 0.0.3]
-- Deployment Method: [Helm, Linux, Windows, Doker]
+- Deployment Method: [Helm, Linux, Windows, Docker]
### 📝 Additional Notes
Got more to say? Tell us here.
diff --git a/src/ingester/db/db.go b/src/ingester/db/db.go
index 165616e0..86b53317 100644
--- a/src/ingester/db/db.go
+++ b/src/ingester/db/db.go
@@ -103,7 +103,7 @@ func generateSecureRandomKey() (string, error) {
func getCreateAPIKeysTableSQL(tableName string) string {
return fmt.Sprintf(`
CREATE TABLE IF NOT EXISTS %s (
- id SERIAL PRIMARY KEY,
+ id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
api_key VARCHAR(255) NOT NULL UNIQUE,
name VARCHAR(50) NOT NULL,
created_at TIMESTAMPTZ DEFAULT NOW()