MTabishS/Text2SQL
0
1SQLite format 3 @ ]
] -��
� O���|2~_�39V �C--�9tableView_Unit_StatusView_Unit_StatusCREATE TABLE View_Unit_Status (4apt_id INTEGER,5apt_booking_id INTEGER,6status_date DATETIME NOT NULL,7available_yn BIT,8PRIMARY KEY (status_date),9FOREIGN KEY (apt_id) REFERENCES Apartments (apt_id),10FOREIGN KEY (apt_booking_id) REFERENCES Apartment_Bookings (apt_booking_id)11)?S- indexsqlite_autoindex_View_Unit_Status_1View_Unit_Status
� 11�itableApartment_BookingsApartment_Bookings12CREATE TABLE Apartment_Bookings (13apt_booking_id INTEGER NOT NULL,14apt_id INTEGER,15guest_id INTEGER NOT NULL,16booking_status_code CHAR(15) NOT NULL,17booking_start_date DATETIME,18booking_end_date DATETIME,19PRIMARY KEY (apt_booking_id),20UNIQUE (apt_booking_id),21FOREIGN KEY (apt_id) REFERENCES Apartments (apt_id),22FOREIGN KEY (guest_id) REFERENCES Guests (guest_id)23)C24W1 indexsqlite_autoindex_Apartment_Bookings_1Apartment_Bookings�^�tableGuestsGuestsCREATE TABLE Guests (25guest_id INTEGER NOT NULL ,26gender_code CHAR(1),27guest_first_name VARCHAR(80),28guest_last_name VARCHAR(80),29date_of_birth DATETIME,30PRIMARY KEY (guest_id),31UNIQUE (guest_id)32)+? indexsqlite_autoindex_Guests_1Guests �m55�}tableApartment_FacilitiesApartment_FacilitiesCREATE TABLE Apartment_Facilities (33apt_id INTEGER NOT NULL,34facility_code CHAR(15) NOT NULL,35PRIMARY KEY (apt_id, facility_code),36FOREIGN KEY (apt_id) REFERENCES Apartments (apt_id)37)G[5 indexsqlite_autoindex_Apartment_Facilities_1Apartment_Facilities�R!!�otableApartmentsApartmentsCREATE TABLE Apartments (38apt_id INTEGER NOT NULL ,39building_id INTEGER NOT NULL,40apt_type_code CHAR(15),41apt_number CHAR(10),42bathroom_count INTEGER,43bedroom_count INTEGER,44room_count CHAR(5),45PRIMARY KEY (apt_id),46UNIQUE (apt_id),47FOREIGN KEY (building_id) REFERENCES Apartment_Buildings (building_id)48)3G! indexsqlite_autoindex_Apartments_1Apartments�_33�etableApartment_BuildingsApartment_BuildingsCREATE TABLE Apartment_Buildings (49building_id INTEGER NOT NULL,50building_short_name CHAR(15),51building_full_name VARCHAR(80),52building_description VARCHAR(255),53building_address VARCHAR(255),54building_manager VARCHAR(50),55building_phone VARCHAR(80),56PRIMARY KEY (building_id),57UNIQUE (building_id)58)EY3 indexsqlite_autoindex_Apartment_Buildings_1Apartment_Buildings
d � �Y
�
s�q�+59�60C � d e�H ##a5The ClintonThe ClintonFlat012 Arnoldo Mountain61Gerholdland, ID 23342Holly1-605-511-1973x25011t�( ##�%PetersfieldPetersfieldStudio54686 Christopher Circles Apt. 32162Daytonland, ID 88081-3991Juvenal318-398-8140m� ))g/Biltmore PlazaBiltmore PlazaDuplex489 Josh Orchard Apt. 99863Sipesview, DE 69053Sydni544-148-5565x2847u�h ''y3Silver TowersSilver TowersFlat1844 Armstrong Stravenue Suite 85364Myrnatown, CT 13528Claude1-667-728-2287x3158a�^ '']'Windsor CourtWindsor CourtStudio601 Graham Roads65Port Luz, VA 29660-6703Olaf(480)480-7401t�! ''y1Barclay TowerBarclay TowerFlat1579 Runte Forges Apt. 54866Leuschkeland, OK 12009-8683Rogers1-326-267-3386x613h� !!o1The AnthemThe AnthemFlat50804 Mason Isle Suite 84467West Whitney, ID 66511Ewald(909)086-5221x3455}�p ++� 'Stuyvesant TownStuyvesant TownStudio101 Queenie Mountains Suite 61968New Korbinmouth, KS 88726-1376Marie(145)411-6406�, 55m5Peter Cooper VillagePeter Cooper VillageFlat861 Narciso Glens Suite 39269East Ottis, ND 73970Darlene1-224-619-0295x13195h� ##q%Avalon ParkAvalon ParkDuplex6827 Kessler Parkway Suite 90870Ahmedberg, WI 48788Albert376-017-3538x�a ++y1Columbus SquareColumbus SquareStudio0703 Danika Mountains Apt. 36271Mohrland, AL 56839-5028Kyle1-724-982-9507x640c�D ##e%VIA 57 WESTVIA 57 WESTStudio959 Ethel Viaduct72West Efrainburgh, DE 40074Kathlyn681.772.2454^�? !!a'The EugeneThe EugeneFlat71537 Gorczany Inlet73Wisozkburgh, AL 08256Melyssa(609)946-0491h� ))[-Mercedes HouseMercedes HouseStudio354 Otto Villages74Charliefort, VT 71664Brenden915-617-2408x832r� ++o/Normandie CourtNormandie CourtStudio7950 Casper Vista Apt. 17675Marquiseberg, CA 70496Emma(948)040-1064x38776