Skip to content

Commit ed08ba2

Browse files
committed
Hw 12 events and users tables
1 parent d90b58a commit ed08ba2

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
-- +goose Up
2+
-- +goose StatementBegin
3+
CREATE TABLE "events"
4+
(
5+
"id" UUID PRIMARY KEY,
6+
"title" TEXT NOT NULL,
7+
"date" TIMESTAMP NOT NULL,
8+
"duration" INTERVAL NOT NULL,
9+
"description" TEXT,
10+
"user_id" UUID NOT NULL,
11+
"notify" TIMESTAMP
12+
);
13+
-- +goose StatementEnd
14+
15+
-- +goose Down
16+
-- +goose StatementBegin
17+
DROP TABLE "events";
18+
-- +goose StatementEnd
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-- +goose Up
2+
-- +goose StatementBegin
3+
CREATE TABLE "events"
4+
(
5+
"id" UUID PRIMARY KEY,
6+
"name" TEXT NOT NULL,
7+
);
8+
-- +goose StatementEnd
9+
10+
-- +goose Down
11+
-- +goose StatementBegin
12+
DROP TABLE "users";
13+
-- +goose StatementEnd

0 commit comments

Comments
 (0)