mirror of
https://github.com/mvvasilev/findtheti.me.git
synced 2025-04-19 13:39:52 +03:00
11 lines
No EOL
402 B
SQL
11 lines
No EOL
402 B
SQL
CREATE TABLE IF NOT EXISTS events.availability (
|
|
id BIGSERIAL,
|
|
event_id BIGINT NOT NULL,
|
|
from_date TIMESTAMP NOT NULL,
|
|
to_date TIMESTAMP NOT NULL,
|
|
user_email VARCHAR(255) NULL,
|
|
user_ip INTEGER NOT NULL,
|
|
user_name VARCHAR(255) NOT NULL,
|
|
CONSTRAINT PK_availability PRIMARY KEY (id),
|
|
CONSTRAINT FK_availability_event FOREIGN KEY (event_id) REFERENCES events.event(id)
|
|
) |