CREATE TABLE head_app_sessions (
    id SERIAL PRIMARY KEY,
    user_id uuid,
    car_id uuid,
    head_id text NOT NULL,
    head_device_id varchar(32),
    dummy_id text NOT NULL,
    passport_key text NOT NULL,
    passport_key_status text DEFAULT 'new',
    launch_app boolean DEFAULT false,

    FOREIGN KEY(user_id) REFERENCES "user"(id),
    FOREIGN KEY(car_id) REFERENCES "car"(id)
);
