FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
opencode-pulse/schema.sql at main · fetep/opencode-pulse · GitHub
fetep
/
opencode-pulse
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
6
Code
Issues
0
Pull requests
4
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
opencode-pulse
/
schema.sql
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (30 loc) · 1.15 KB
Breadcrumbs
opencode-pulse
/
schema.sql
Copy path
File metadata and controls
33 lines (30 loc) · 1.15 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--
Schema version 4: add subagent tracking and session age
CREATE
TABLE
IF
NOT EXISTS schema_version (
id
INTEGER
PRIMARY KEY
CHECK
(id
=
1
),
version
INTEGER
NOT NULL
);
INSERT INTO
schema_version (id, version)
VALUES
(
1
,
4
)
ON
CONFLICT(id) DO
UPDATE
SET
version
=
excluded
.
version
;
CREATE
TABLE
IF
NOT EXISTS sessions (
pid
INTEGER
PRIMARY KEY
,
session_id
TEXT
,
project_id
TEXT
,
directory
TEXT
,
title
TEXT
,
status
TEXT
NOT NULL
DEFAULT
'
idle
'
,
retry_message
TEXT
,
retry_next
INTEGER
,
error_message
TEXT
,
tmux_pane
TEXT
,
tmux_target
TEXT
,
opencode_version
TEXT
,
todo_total
INTEGER
NOT NULL
DEFAULT
0
,
todo_done
INTEGER
NOT NULL
DEFAULT
0
,
subagent_count
INTEGER
NOT NULL
DEFAULT
0
,
session_started_at
INTEGER
,
heartbeat_at
INTEGER
NOT NULL
,
created_at
INTEGER
NOT NULL
,
updated_at
INTEGER
NOT NULL
);
CREATE
INDEX
IF
NOT EXISTS idx_sessions_status
ON
sessions(status);
CREATE
INDEX
IF
NOT EXISTS idx_sessions_heartbeat
ON
sessions(heartbeat_at);
Back
|
FazBrowse Home
|
New Git URL