create table driver
(
    id                             serial      not null,
    vehicle_id                     integer     not null,
    person_id                      integer     not null,
    from_date_time                 timestamp,
    to_date_time                   timestamp,
    created_at                     timestamp   not null default now(),
    updated_at                     timestamp,
    constraint primary_key_driver  primary key (id),
    constraint foreign_key_driver_vehicle   
        foreign key (vehicle_id) references vehicle(id),
    constraint foreign_key_driver_person    
        foreign key (person_id) references person(id)
);
