mirror of
https://github.com/mvvasilev/findtheti.me.git
synced 2025-04-19 13:39:52 +03:00
11 lines
402 B
MySQL
11 lines
402 B
MySQL
|
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)
|
||
|
)
|