File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
coderd/database/migrations Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
CREATE TABLE workspace_app_stats (
2
- id BIGSERIAL PRIMARY KEY ,
3
- user_id uuid NOT NULL REFERENCES users (id),
2
+ id BIGSERIAL PRIMARY KEY ,
3
+ user_id uuid NOT NULL REFERENCES users (id),
4
4
workspace_id uuid NOT NULL REFERENCES workspaces (id),
5
- agent_id uuid NOT NULL REFERENCES workspace_agents (id),
5
+ agent_id uuid NOT NULL REFERENCES workspace_agents (id),
6
6
access_method text NOT NULL ,
7
7
slug_or_port text NOT NULL ,
8
8
session_id uuid NOT NULL ,
9
- session_started_at timestamptz NOT NULL ,
10
- session_ended_at timestamptz NOT NULL ,
9
+ session_started_at timestamptz NOT NULL ,
10
+ session_ended_at timestamptz NOT NULL ,
11
11
requests integer NOT NULL ,
12
12
13
13
-- Set a unique constraint to allow upserting the session_ended_at
You can’t perform that action at this time.
0 commit comments