- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.sql
More file actions
Latest commit
15 lines (14 loc) · 403 Bytes
/
Copy pathdatabase.sql
File metadata and controls
15 lines (14 loc) · 403 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CREATETABLEIF NOT EXISTS urls (
id bigintPRIMARY KEY GENERATED ALWAYS AS IDENTITY,
name VARCHAR(255),
created_at DATE DEFAULT CURRENT_TIMESTAMP
);
CREATETABLEIF NOT EXISTS url_checks (
id bigintPRIMARY KEY GENERATED ALWAYS AS IDENTITY,
url_id integer,
status_code integer,
h1 varchar(255),
title varchar(60),
description varchar(255),
created_at Date DEFAULT CURRENT_TIMESTAMP
);