PRAGMA foreign_keys = ON;

PRAGMA writable_schema = 1;
DELETE FROM sqlite_master WHERE type IN ("table", "index", "trigger");
PRAGMA writable_schema = 0;
VACUUM;

CREATE TABLE "Other_Available_Features" (
"feature_id" INT UNIQUE,
"feature_type_code" VARCHAR(20),
"feature_name" VARCHAR(80),
PRIMARY KEY ("feature_id")
);

CREATE TABLE "Other_Property_Features" (
"feature_id" INT,
FOREIGN KEY ("feature_id") REFERENCES "Other_Available_Features"("feature_id")
);





INSERT INTO "Other_Available_Features" VALUES ("1", "AMENITY", "Swimming Pool");
INSERT INTO "Other_Available_Features" VALUES ("2", "AMENITY", "Gym");
INSERT INTO "Other_Available_Features" VALUES ("3", "AMENITY", "Parking");
INSERT INTO "Other_Available_Features" VALUES ("4", "AMENITY", "Garden");
INSERT INTO "Other_Available_Features" VALUES ("5", "SECURITY", "24/7 Security");
INSERT INTO "Other_Available_Features" VALUES ("6", "SECURITY", "Gated Community");
INSERT INTO "Other_Available_Features" VALUES ("7", "INTERIOR", "Hardwood Floors");
INSERT INTO "Other_Available_Features" VALUES ("8", "INTERIOR", "Fireplace");
INSERT INTO "Other_Available_Features" VALUES ("9", "EXTERIOR", "Balcony");
INSERT INTO "Other_Available_Features" VALUES ("10", "EXTERIOR", "Patio");
INSERT INTO "Other_Available_Features" VALUES ("11", "UTILITY", "Central Air Conditioning");
INSERT INTO "Other_Available_Features" VALUES ("12", "UTILITY", "Washer/Dryer Hookups");
INSERT INTO "Other_Available_Features" VALUES ("13", "ACCESSIBILITY", "Wheelchair Accessible");
INSERT INTO "Other_Available_Features" VALUES ("14", "ACCESSIBILITY", "Elevator Access");
INSERT INTO "Other_Available_Features" VALUES ("15", "AMENITY", "Pet Friendly");
INSERT INTO "Other_Available_Features" VALUES ("16", "AMENITY", "Clubhouse");
INSERT INTO "Other_Available_Features" VALUES ("17", "INTERIOR", "Walk-in Closet");
INSERT INTO "Other_Available_Features" VALUES ("18", "EXTERIOR", "Roof Deck");
INSERT INTO "Other_Available_Features" VALUES ("19", "UTILITY", "Smart Home Technology");
INSERT INTO "Other_Available_Features" VALUES ("20", "SECURITY", "Video Surveillance");
INSERT INTO "Other_Property_Features" VALUES ("1");
INSERT INTO "Other_Property_Features" VALUES ("2");
INSERT INTO "Other_Property_Features" VALUES ("3");
INSERT INTO "Other_Property_Features" VALUES ("4");
INSERT INTO "Other_Property_Features" VALUES ("5");
INSERT INTO "Other_Property_Features" VALUES ("6");
INSERT INTO "Other_Property_Features" VALUES ("7");
INSERT INTO "Other_Property_Features" VALUES ("8");
INSERT INTO "Other_Property_Features" VALUES ("9");
INSERT INTO "Other_Property_Features" VALUES ("10");
INSERT INTO "Other_Property_Features" VALUES ("11");
INSERT INTO "Other_Property_Features" VALUES ("12");
INSERT INTO "Other_Property_Features" VALUES ("13");
INSERT INTO "Other_Property_Features" VALUES ("14");
INSERT INTO "Other_Property_Features" VALUES ("15");
INSERT INTO "Other_Property_Features" VALUES ("16");
INSERT INTO "Other_Property_Features" VALUES ("17");
INSERT INTO "Other_Property_Features" VALUES ("18");
INSERT INTO "Other_Property_Features" VALUES ("19");
INSERT INTO "Other_Property_Features" VALUES ("20");