Skip to content

Commit

Permalink
change database.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
ReYaNOW committed Dec 29, 2023
1 parent b777213 commit 51145f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions database.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
DROP TABLE urls, url_checks;
CREATE TABLE IF NOT EXISTS urls
(
id bigint PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
name varchar(255),
created_at date
created_at date DEFAULT CURRENT_DATE
);


CREATE TABLE IF NOT EXISTS url_checks
(
id bigint PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
Expand All @@ -13,5 +15,5 @@ CREATE TABLE IF NOT EXISTS url_checks
h1 varchar(255),
title varchar(255),
description text,
created_at date
created_at date DEFAULT CURRENT_DATE
);

0 comments on commit 51145f9

Please sign in to comment.