Skip to content

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

Feat: Add `created_on` fields to the `DOKU_APIKEYS` table (#46)

Patcher99bdf7d653be9c
diff --git a/src/ingester/db/db.go b/src/ingester/db/db.go
index b070f4c7..0042643c 100644
--- a/src/ingester/db/db.go
+++ b/src/ingester/db/db.go
@@ -104,7 +104,8 @@ func getCreateAPIKeysTableSQL(tableName string) string {
CREATE TABLE IF NOT EXISTS %s (
id SERIAL PRIMARY KEY,
api_key VARCHAR(255) NOT NULL UNIQUE,
- name VARCHAR(50) NOT NULL
+ name VARCHAR(50) NOT NULL,
+ created_at TIMESTAMPTZ DEFAULT NOW()
);`, tableName)
}