PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS "migrations" ("id" integer primary key autoincrement not null, "migration" varchar not null, "batch" integer not null);
INSERT INTO migrations VALUES(1,'0001_01_01_000000_create_users_table',1);
INSERT INTO migrations VALUES(2,'0001_01_01_000001_create_cache_table',1);
INSERT INTO migrations VALUES(3,'0001_01_01_000002_create_jobs_table',1);
INSERT INTO migrations VALUES(5,'2026_03_24_081848_create_properties_table',2);
INSERT INTO migrations VALUES(6,'2026_03_25_094829_add_missing_property_columns',3);
INSERT INTO migrations VALUES(7,'2026_03_25_095025_add_slug_to_properties',4);
INSERT INTO migrations VALUES(8,'2026_03_25_095105_create_system_settings_table',5);
INSERT INTO migrations VALUES(9,'2026_03_25_095744_add_seo_fields_to_properties_table',6);
CREATE TABLE IF NOT EXISTS "users" ("id" integer primary key autoincrement not null, "name" varchar not null, "email" varchar not null, "email_verified_at" datetime, "password" varchar not null, "remember_token" varchar, "created_at" datetime, "updated_at" datetime);
CREATE TABLE IF NOT EXISTS "password_reset_tokens" ("email" varchar not null, "token" varchar not null, "created_at" datetime, primary key ("email"));
CREATE TABLE IF NOT EXISTS "sessions" ("id" varchar not null, "user_id" integer, "ip_address" varchar, "user_agent" text, "payload" text not null, "last_activity" integer not null, primary key ("id"));
INSERT INTO sessions VALUES('MtwyqhVr3LEmrult69pRMfO6QgDzdJv9Pnxu2mwk',NULL,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36','YTozOntzOjY6Il90b2tlbiI7czo0MDoicDRGTXVrZElYQm84V2MwYWlrbllQS3d2amZqdElYbEFia0dYY0g3QSI7czo5OiJfcHJldmlvdXMiO2E6Mjp7czozOiJ1cmwiO3M6NDU6Imh0dHA6Ly8xMjcuMC4wLjE6ODAwMC9hZG1pbi9wcm9wZXJ0aWVzL2NyZWF0ZSI7czo1OiJyb3V0ZSI7czoyMzoiYWRtaW4ucHJvcGVydGllcy5jcmVhdGUiO31zOjY6Il9mbGFzaCI7YToyOntzOjM6Im9sZCI7YTowOnt9czozOiJuZXciO2E6MDp7fX19',1774433506);
INSERT INTO sessions VALUES('bhy6iRRiwViz7ub0ns3QNDKQ2teSmHd0DSVgncDq',NULL,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36','YTozOntzOjY6Il90b2tlbiI7czo0MDoiOHFybTNuT0VLSENobTB6c2ZYNVlJNURCeUpLYU1HUnVLQWdvTWxNaSI7czo5OiJfcHJldmlvdXMiO2E6Mjp7czozOiJ1cmwiO3M6NDU6Imh0dHA6Ly8xMjcuMC4wLjE6ODAwMC9hZG1pbi9wcm9wZXJ0aWVzL2NyZWF0ZSI7czo1OiJyb3V0ZSI7czoyMzoiYWRtaW4ucHJvcGVydGllcy5jcmVhdGUiO31zOjY6Il9mbGFzaCI7YToyOntzOjM6Im9sZCI7YTowOnt9czozOiJuZXciO2E6MDp7fX19',1774432004);
CREATE TABLE IF NOT EXISTS "cache" ("key" varchar not null, "value" text not null, "expiration" integer not null, primary key ("key"));
CREATE TABLE IF NOT EXISTS "cache_locks" ("key" varchar not null, "owner" varchar not null, "expiration" integer not null, primary key ("key"));
CREATE TABLE IF NOT EXISTS "jobs" ("id" integer primary key autoincrement not null, "queue" varchar not null, "payload" text not null, "attempts" integer not null, "reserved_at" integer, "available_at" integer not null, "created_at" integer not null);
CREATE TABLE IF NOT EXISTS "job_batches" ("id" varchar not null, "name" varchar not null, "total_jobs" integer not null, "pending_jobs" integer not null, "failed_jobs" integer not null, "failed_job_ids" text not null, "options" text, "cancelled_at" integer, "created_at" integer not null, "finished_at" integer, primary key ("id"));
CREATE TABLE IF NOT EXISTS "failed_jobs" ("id" integer primary key autoincrement not null, "uuid" varchar not null, "connection" text not null, "queue" text not null, "payload" text not null, "exception" text not null, "failed_at" datetime not null default CURRENT_TIMESTAMP);
CREATE TABLE IF NOT EXISTS "properties" ("id" integer primary key autoincrement not null, "title" varchar not null, "description" text, "price" numeric not null, "status" varchar not null default 'available', "location" varchar, "square_feet" integer, "bedrooms" integer, "bathrooms" integer, "property_type" varchar, "invested_amount" numeric not null default '0', "profit_amount" numeric not null default '0', "progress" integer not null default '0', "created_at" datetime, "updated_at" datetime, "main_image" varchar, "images" text, "amenities" text, "address" varchar, "price_type" varchar not null default 'monthly', "featured" tinyint(1) not null default '0', "garages" integer default '0', "floors" integer default '1', "latitude" numeric, "longitude" numeric, "slug" varchar not null, "seo_title" varchar, "seo_description" text, "seo_keywords" text, "seo_image" varchar, "canonical_url" varchar, "robots_meta" varchar not null default 'index, follow', "social_title" varchar, "social_description" text, "social_image" varchar, "focus_keyword" varchar);
INSERT INTO properties VALUES(1,'Luxury Villa in Chennai','Beautiful luxury villa with modern amenities and stunning views. Perfect for families looking for premium living.',450000,'available','Chennai',2500,4,3,'villa',0,0,0,'2026-03-25 09:50:43','2026-03-25 09:50:43',NULL,NULL,NULL,NULL,'monthly',0,0,1,NULL,NULL,'luxury-villa-in-chennai',NULL,NULL,NULL,NULL,NULL,'index, follow',NULL,NULL,NULL,NULL);
INSERT INTO properties VALUES(2,'Modern Apartment in T. Nagar','Contemporary apartment with excellent connectivity and modern facilities. Ideal for young professionals.',25000,'available','Chennai',1200,2,2,'apartment',0,0,0,'2026-03-25 09:50:43','2026-03-25 09:50:43',NULL,NULL,NULL,NULL,'monthly',0,0,1,NULL,NULL,'modern-apartment-in-t-nagar',NULL,NULL,NULL,NULL,NULL,'index, follow',NULL,NULL,NULL,NULL);
INSERT INTO properties VALUES(3,'Cozy Studio in Mylapore','Compact and efficient studio apartment in the heart of Mylapore. Perfect for students and singles.',15000,'available','Chennai',600,1,1,'studio',0,0,0,'2026-03-25 09:50:43','2026-03-25 09:50:43',NULL,NULL,NULL,NULL,'monthly',0,0,1,NULL,NULL,'cozy-studio-in-mylapore',NULL,NULL,NULL,NULL,NULL,'index, follow',NULL,NULL,NULL,NULL);
INSERT INTO properties VALUES(4,'Spacious Family House','Large family home with beautiful garden and modern amenities. Great for growing families.',35000,'available','Chennai',1800,3,2,'house',0,0,0,'2026-03-25 09:50:43','2026-03-25 09:50:43',NULL,NULL,NULL,NULL,'monthly',0,0,1,NULL,NULL,'spacious-family-house',NULL,NULL,NULL,NULL,NULL,'index, follow',NULL,NULL,NULL,NULL);
INSERT INTO properties VALUES(5,'Premium Office Space','Modern office space in prime business district with excellent connectivity.',50000,'available','Chennai',2000,0,2,'office',0,0,0,'2026-03-25 09:50:43','2026-03-25 09:50:43',NULL,NULL,NULL,NULL,'monthly',0,0,1,NULL,NULL,'premium-office-space',NULL,NULL,NULL,NULL,NULL,'index, follow',NULL,NULL,NULL,NULL);
INSERT INTO properties VALUES(6,'Building Chennai''s Future','Innovative building design with sustainable materials and smart home technology. Future-ready construction with modern amenities.',750000,'available','Chennai',3500,5,4,'villa',0,0,0,'2026-03-25 09:50:43','2026-03-25 09:50:43',NULL,NULL,NULL,NULL,'monthly',0,0,1,NULL,NULL,'building-chennais-future',NULL,NULL,NULL,NULL,NULL,'index, follow',NULL,NULL,NULL,NULL);
CREATE TABLE IF NOT EXISTS "system_settings" ("id" integer primary key autoincrement not null, "key" varchar not null, "value" text, "type" varchar not null default 'text', "group" varchar not null default 'general', "description" text, "created_at" datetime, "updated_at" datetime);
INSERT INTO system_settings VALUES(1,'meta_keywords','SREENIVAS Housing, real estate, properties, apartments, villas, Chennai, luxury homes, residential properties, commercial properties','textarea','seo','Meta Keywords (comma-separated)','2026-03-25 09:55:41','2026-03-25 09:55:41');
INSERT INTO system_settings VALUES(2,'meta_description','SREENIVAS Housing - Premium real estate properties in Chennai. Find your dream home with our extensive collection of luxury apartments, villas, and commercial properties.','textarea','seo','Meta Description','2026-03-25 09:55:41','2026-03-25 09:55:41');
INSERT INTO system_settings VALUES(3,'social_title','SREENIVAS Housing - Premium Real Estate in Chennai','text','social','Social Media Title','2026-03-25 09:55:41','2026-03-25 09:55:41');
INSERT INTO system_settings VALUES(4,'social_description','Discover luxury properties in Chennai with SREENIVAS Housing. Premium apartments, villas, and commercial spaces for your dream lifestyle.','textarea','social','Social Media Description','2026-03-25 09:55:41','2026-03-25 09:55:41');
DELETE FROM sqlite_sequence;
INSERT INTO sqlite_sequence VALUES('migrations',9);
INSERT INTO sqlite_sequence VALUES('properties',6);
INSERT INTO sqlite_sequence VALUES('system_settings',4);
CREATE UNIQUE INDEX "users_email_unique" on "users" ("email");
CREATE INDEX "sessions_user_id_index" on "sessions" ("user_id");
CREATE INDEX "sessions_last_activity_index" on "sessions" ("last_activity");
CREATE INDEX "cache_expiration_index" on "cache" ("expiration");
CREATE INDEX "cache_locks_expiration_index" on "cache_locks" ("expiration");
CREATE INDEX "jobs_queue_index" on "jobs" ("queue");
CREATE UNIQUE INDEX "failed_jobs_uuid_unique" on "failed_jobs" ("uuid");
CREATE UNIQUE INDEX "properties_slug_unique" on "properties" ("slug");
CREATE UNIQUE INDEX "system_settings_key_unique" on "system_settings" ("key");
COMMIT;
