We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5615e27 commit 9418abdCopy full SHA for 9418abd
coderd/database/migrations/000150_workspace_app_stats.up.sql
@@ -1,13 +1,13 @@
1
CREATE TABLE workspace_app_stats (
2
- id BIGSERIAL PRIMARY KEY,
3
- user_id uuid NOT NULL REFERENCES users (id),
+ id BIGSERIAL PRIMARY KEY,
+ user_id uuid NOT NULL REFERENCES users (id),
4
workspace_id uuid NOT NULL REFERENCES workspaces (id),
5
- agent_id uuid NOT NULL REFERENCES workspace_agents (id),
+ agent_id uuid NOT NULL REFERENCES workspace_agents (id),
6
access_method text NOT NULL,
7
slug_or_port text NOT NULL,
8
session_id uuid NOT NULL,
9
- session_started_at timestamptz NOT NULL,
10
- session_ended_at timestamptz NOT NULL,
+ session_started_at timestamptz NOT NULL,
+ session_ended_at timestamptz NOT NULL,
11
requests integer NOT NULL,
12
13
-- Set a unique constraint to allow upserting the session_ended_at
0 commit comments