Codewise
Courses
My learning
Ideas
Leaderboard
YouTube
Courses
My learning
Ideas
Leaderboard
YouTube
Sign in
db/migrations/0004_jobs.up.sql · System Design in Go: Build a Social Network Backend | Codewise
System Design in Go: Build a Social Network Backend
murmur
/
db
/
migrations
/
0004_jobs.up.sql
main
0004_jobs.up.sql
7 lines, 307 B
Raw
1
create
table
jobs
(
2
id
bigint
generated
always
as
identity
primary key
,
3
kind
text
not null
,
4
payload jsonb
not null
,
5
status
text
not null
default
'waiting'
check
(
status
in
(
'waiting'
,
'running'
)),
6
created_at
timestamptz
not null
default
now
()
7
);