--
-- Host: localhost    Database: home
-- ------------------------------------------------------


--
-- Table structure for table `auth_group`
--

CREATE TABLE `auth_group` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(150) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `auth_group`
--


--
-- Table structure for table `auth_group_permissions`
--

CREATE TABLE `auth_group_permissions` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `group_id` int NOT NULL,
  `permission_id` int NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
  KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
  CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
  CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `auth_group_permissions`
--


--
-- Table structure for table `auth_permission`
--

CREATE TABLE `auth_permission` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `content_type_id` int NOT NULL,
  `codename` varchar(100) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
  CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `auth_permission`
--

INSERT INTO `auth_permission` VALUES (1,'Can add log entry',1,'add_logentry'),(2,'Can change log entry',1,'change_logentry'),(3,'Can delete log entry',1,'delete_logentry'),(4,'Can view log entry',1,'view_logentry'),(5,'Can add permission',2,'add_permission'),(6,'Can change permission',2,'change_permission'),(7,'Can delete permission',2,'delete_permission'),(8,'Can view permission',2,'view_permission'),(9,'Can add group',3,'add_group'),(10,'Can change group',3,'change_group'),(11,'Can delete group',3,'delete_group'),(12,'Can view group',3,'view_group'),(13,'Can add user',4,'add_user'),(14,'Can change user',4,'change_user'),(15,'Can delete user',4,'delete_user'),(16,'Can view user',4,'view_user'),(17,'Can add content type',5,'add_contenttype'),(18,'Can change content type',5,'change_contenttype'),(19,'Can delete content type',5,'delete_contenttype'),(20,'Can view content type',5,'view_contenttype'),(21,'Can add session',6,'add_session'),(22,'Can change session',6,'change_session'),(23,'Can delete session',6,'delete_session'),(24,'Can view session',6,'view_session'),(25,'Can add drinks store',7,'add_drinksstore'),(26,'Can change drinks store',7,'change_drinksstore'),(27,'Can delete drinks store',7,'delete_drinksstore'),(28,'Can view drinks store',7,'view_drinksstore'),(29,'Can add statistics',8,'add_statistics'),(30,'Can change statistics',8,'change_statistics'),(31,'Can delete statistics',8,'delete_statistics'),(32,'Can view statistics',8,'view_statistics'),(33,'Can add profile',9,'add_profile'),(34,'Can change profile',9,'change_profile'),(35,'Can delete profile',9,'delete_profile'),(36,'Can view profile',9,'view_profile'),(37,'Can add transaction',10,'add_transaction'),(38,'Can change transaction',10,'change_transaction'),(39,'Can delete transaction',10,'delete_transaction'),(40,'Can view transaction',10,'view_transaction'),(41,'Can add expenditure',11,'add_expenditure'),(42,'Can change expenditure',11,'change_expenditure'),(43,'Can delete expenditure',11,'delete_expenditure'),(44,'Can view expenditure',11,'view_expenditure');

--
-- Table structure for table `auth_user`
--

CREATE TABLE `auth_user` (
  `id` int NOT NULL AUTO_INCREMENT,
  `password` varchar(128) NOT NULL,
  `last_login` datetime(6) DEFAULT NULL,
  `is_superuser` tinyint(1) NOT NULL,
  `username` varchar(150) NOT NULL,
  `first_name` varchar(150) NOT NULL,
  `last_name` varchar(150) NOT NULL,
  `email` varchar(254) NOT NULL,
  `is_staff` tinyint(1) NOT NULL,
  `is_active` tinyint(1) NOT NULL,
  `date_joined` datetime(6) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `auth_user`
--

INSERT INTO `auth_user` VALUES (1,'pbkdf2_sha256$1000000$DG40I3MxCwyq07fETK59vz$OlKhNobIDe+OAvZK3WbI/b1ATUWpycXtzqm02PJ/DgE=','2025-12-16 04:07:32.065799',1,'michael','','','shayomichael@gmail.com',1,1,'2025-11-14 23:05:57.655597'),(2,'pbkdf2_sha256$870000$MKozyD0jAn0keiTVYZyjhp$DT3BJVk8JyNW4/t95uQzsJFYwwD5glgBEQRetJqde+8=','2025-11-15 09:32:22.511688',0,'antony','antony','kanti','antony@gmail.com',0,1,'2025-11-15 09:32:02.532944'),(3,'pbkdf2_sha256$870000$ivXVKEzCUjJ43o5qSL4rcY$qSDl991SczNQFfiIec2WvQRgenzef628QUyBmZWePR8=',NULL,0,'obalda','Obalda ','kombe','obalda@gmail',0,1,'2025-11-15 19:50:38.478096'),(4,'pbkdf2_sha256$870000$PQjci40yqrbYpu2HaFkmjj$ivf6ZlFFDG8iXj/s0UVWVSfMyGxieURlQ9HSRpn5WjU=',NULL,0,'abdul','abdul','','abdul@gmail',0,1,'2025-11-15 19:52:29.078854'),(5,'pbkdf2_sha256$870000$9KzHLfsL81CL96QyaALWVj$SvaxiqH85BtBZBTUPCehO9QyOImXWVZBXRmv/C38QRs=',NULL,0,'lucy','lucy','selitus','lucy@gmail.com',0,1,'2025-11-15 19:55:03.786474'),(6,'pbkdf2_sha256$870000$EZ5I1aFP4KhRio0oDAPDbv$fc1VHo35k3E0c00CZ3Ib1zXGMdAYb59Kfi9BQeU2Ymk=',NULL,0,'venance','venance','','venance@gmail.com',0,1,'2025-11-15 19:57:04.850725'),(7,'pbkdf2_sha256$870000$BKoznoQoYTm6llmPZtmVfX$F1gIoeDOXKjD0icAx9P2pUi7LKQkNBlrBu8jN9igxlo=',NULL,0,'neema','neema','','neema@gmail.com',0,1,'2025-11-15 19:59:57.559901'),(8,'pbkdf2_sha256$870000$BapedgN8zznPDS6fNDCDnZ$4w0vri/wnYeAApLHAEtJCC9aJ3YO9AZmmGgqvkKlOoM=',NULL,0,'Beatrice','Beatrice','Abasi','beatrice@gmail.com',0,1,'2025-11-15 20:07:55.488707'),(9,'pbkdf2_sha256$1000000$UDZvbaWFMURnNTLS1Hy5CY$ANhpRWFl78/W40LFRm8TcKxTRj9vlU2rkb39uO6iM7o=','2025-12-15 13:13:49.358006',0,'Gift','Gift','Dodo','gift@gmail.com',0,1,'2025-11-15 20:11:31.141666'),(10,'pbkdf2_sha256$870000$ioAuZX6K5jiSQyRgpA96ul$GJO/IOFaDpT7lklkzfHyYMCxK+f+aRgqKU0bchX47kc=',NULL,0,'benjamin','Benjamin','','benjamin@gmail.com',0,1,'2025-11-15 20:18:58.260740'),(11,'pbkdf2_sha256$870000$SxeYkET4oEUiWw4eLpVN4y$gsw+HgPtnGQUHxKZqX1imsr6xTtJkdPtAJKF/zBCwyA=',NULL,0,'Frorence','Frorence','','Frorence@gmail.com',0,1,'2025-11-15 20:21:44.480720'),(12,'pbkdf2_sha256$870000$t12b8XxRNC8cnWUCJqA6vw$GfoVhUFJTK9DpL1S2QFcu1WpQNf0uvw8NWzDm02vM/E=',NULL,0,'Sara','Sara','Mshana','Sara@gmail.com',0,1,'2025-11-15 20:33:15.746351'),(13,'pbkdf2_sha256$1000000$onuzzVWYNUD8x6xZjQfjqP$YnHbn/UiuCU4DVh97mkbSbDJ4d6gR3iI2Pjiop8SArM=','2025-12-04 00:22:07.669993',0,'Sia','Sia','Urassa','sia@gmail.com',0,1,'2025-11-15 20:35:18.581946'),(14,'pbkdf2_sha256$870000$VS2CrFfdhjPWcri2A0loLI$I5N8uNW2i0QZzl4iBoaPJtM8xVTsIx8+oQqT1igRH/0=','2025-11-16 00:36:50.999300',0,'Omary','Omary','Said','omary@gmail.com',0,1,'2025-11-15 20:38:33.726012'),(15,'pbkdf2_sha256$870000$HY6p09k88FUnfODpfNdR4M$jXs/T5x+08J9lz6EhiSZ+gDbNSEkGCNBAWNeDRhrPtc=',NULL,0,'Asia','Asia','Yusuph','asia@gmail.com',0,1,'2025-11-15 20:39:58.116701'),(16,'pbkdf2_sha256$870000$iyXML9o72zb6Lq7r9FLlg4$KGBSjiG8X5c682y/+QpAOoF6rhpHasvpGm4YQ2S2W1U=',NULL,0,'Flora','Flora','Julius','flora@gmail.com',0,1,'2025-11-15 20:43:04.678017'),(17,'pbkdf2_sha256$870000$qBD6MJhZMU5ym3IgCtZQDs$tABWaylFw52706p3g6lq7buNYrfLNaWauXJ85utmG6o=',NULL,0,'Beda','Beda','','beda@gmail.com',0,1,'2025-11-15 20:45:47.869903'),(18,'pbkdf2_sha256$870000$2Auf9k7yXLIR9QcE4RQxbm$ukyMgRxGdW2/4IaQMU1B9mvxv88aZR8dT74DhSjHtuQ=',NULL,0,'CARREN','CARREN','Abasi','carren@gmail.com',0,1,'2025-11-15 20:53:26.929858'),(20,'pbkdf2_sha256$1000000$OitDKprPpJCRQRRVkxvIal$fPCp1dMvL1Pf9tykEvH6Kj/AhtAjxIwyDaKgN1zKJbs=','2025-11-29 05:48:49.285443',0,'Lenk','Love','','loveedward1712.le@gmail.com',0,1,'2025-11-29 05:48:07.776924'),(21,'pbkdf2_sha256$1000000$X8pYLYwJ11oipqp6JsUXax$HF6uEefejyVa7WmNreNgTTjnF41nmIRoYAUZ6RnJOuw=','2025-12-03 21:54:09.735530',0,'shayo','richard','hans','richar@gmail.com',0,1,'2025-12-03 21:26:33.387989'),(22,'pbkdf2_sha256$1000000$s61rtdgpkqD5nOrG1s9B1u$OAym751X65ZSEYGVbR5LgGyLKSZspWbdYGQuG8Xiw30=','2025-12-16 00:48:45.735497',0,'dulla','dulla','ramadhani','dulla@gmail.com',1,1,'2025-12-04 06:26:40.000000'),(23,'pbkdf2_sha256$1000000$vDwyDQjyvdTUbSBBJwblig$wMRkhrzVOJ6K+XPRZZPuPuop+AFu20iK4TH3EbuBSAI=','2025-12-04 09:13:10.976415',0,'makoroka','Evarist','','makoroka@gmail.com',0,1,'2025-12-04 06:37:58.000000'),(24,'pbkdf2_sha256$1000000$ofDOlBMNRk2ALFN9K90haF$qZT7ugWo3n8wRCeWdu9ebwYdSdBcRMTlgzH2DvGx5C4=','2025-12-04 09:25:28.650165',0,'iren','iren','trudo','trudo@gmail.com',0,1,'2025-12-04 09:04:10.741421');

--
-- Table structure for table `auth_user_groups`
--

CREATE TABLE `auth_user_groups` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `group_id` int NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
  KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
  CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
  CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `auth_user_groups`
--


--
-- Table structure for table `auth_user_user_permissions`
--

CREATE TABLE `auth_user_user_permissions` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `permission_id` int NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
  KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
  CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
  CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `auth_user_user_permissions`
--


--
-- Table structure for table `django_admin_log`
--

CREATE TABLE `django_admin_log` (
  `id` int NOT NULL AUTO_INCREMENT,
  `action_time` datetime(6) NOT NULL,
  `object_id` longtext,
  `object_repr` varchar(200) NOT NULL,
  `action_flag` smallint unsigned NOT NULL,
  `change_message` longtext NOT NULL,
  `content_type_id` int DEFAULT NULL,
  `user_id` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
  KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
  CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
  CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
  CONSTRAINT `django_admin_log_chk_1` CHECK ((`action_flag` >= 0))
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `django_admin_log`
--

INSERT INTO `django_admin_log` VALUES (1,'2025-11-15 10:59:54.904744','5',' TRANSACTION MADE BY antony STATUS = declined',2,'[{\"changed\": {\"fields\": [\"Status\"]}}]',10,1),(2,'2025-11-15 11:55:13.535984','2','payments,Amount50000',1,'[{\"added\": {}}]',11,1),(3,'2025-11-15 22:32:19.537626','1','SODA:866, WATER: 589',2,'[{\"changed\": {\"fields\": [\"Price per soda\"]}}]',7,1),(4,'2025-11-15 22:32:53.491081','1','SODA:866, WATER: 589',2,'[{\"changed\": {\"fields\": [\"Price per soda\"]}}]',7,1),(5,'2025-11-15 22:55:31.492740','3','office,Amount : 5000',1,'[{\"added\": {}}]',11,1),(6,'2025-11-16 04:15:54.009506','10',' TRANSACTION MADE BY michael STATUS = confirmed',2,'[]',10,1),(7,'2025-11-28 09:29:38.685153','19','dulla',1,'[{\"added\": {}}]',4,1),(8,'2025-11-28 09:30:06.830371','19','dulla',2,'[{\"changed\": {\"fields\": [\"Email address\", \"Staff status\"]}}]',4,1),(9,'2025-12-04 06:07:33.077967','19','shayo',2,'[{\"changed\": {\"fields\": [\"Rank\"]}}]',9,1),(10,'2025-12-04 06:23:32.975039','19','dulla',3,'',4,1),(11,'2025-12-04 06:27:28.424121','22','dulla',2,'[{\"changed\": {\"fields\": [\"Staff status\"]}}]',4,1),(12,'2025-12-04 06:42:49.040298','21','makoroka',2,'[{\"changed\": {\"fields\": [\"Rank\"]}}]',9,1),(13,'2025-12-04 07:34:19.466173','23','makoroka',2,'[{\"changed\": {\"fields\": [\"Active\"]}}]',4,1),(14,'2025-12-04 07:35:11.710901','23','makoroka',2,'[{\"changed\": {\"fields\": [\"Active\"]}}]',4,1),(15,'2025-12-04 07:40:10.221220','23','makoroka',2,'[{\"changed\": {\"fields\": [\"Active\", \"Last login\"]}}]',4,1),(16,'2025-12-04 07:40:41.826396','23','makoroka',2,'[{\"changed\": {\"fields\": [\"Active\"]}}]',4,1),(17,'2025-12-04 09:04:58.240464','22','iren',2,'[{\"changed\": {\"fields\": [\"Rank\"]}}]',9,1);

--
-- Table structure for table `django_content_type`
--

CREATE TABLE `django_content_type` (
  `id` int NOT NULL AUTO_INCREMENT,
  `app_label` varchar(100) NOT NULL,
  `model` varchar(100) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `django_content_type`
--

INSERT INTO `django_content_type` VALUES (1,'admin','logentry'),(3,'auth','group'),(2,'auth','permission'),(4,'auth','user'),(5,'contenttypes','contenttype'),(7,'main','drinksstore'),(11,'main','expenditure'),(9,'main','profile'),(8,'main','statistics'),(10,'main','transaction'),(6,'sessions','session');

--
-- Table structure for table `django_migrations`
--

CREATE TABLE `django_migrations` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `app` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `applied` datetime(6) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `django_migrations`
--

INSERT INTO `django_migrations` VALUES (1,'contenttypes','0001_initial','2025-11-14 23:04:18.187898'),(2,'auth','0001_initial','2025-11-14 23:04:30.060656'),(3,'admin','0001_initial','2025-11-14 23:04:32.719897'),(4,'admin','0002_logentry_remove_auto_add','2025-11-14 23:04:32.809885'),(5,'admin','0003_logentry_add_action_flag_choices','2025-11-14 23:04:32.958997'),(6,'contenttypes','0002_remove_content_type_name','2025-11-14 23:04:35.068127'),(7,'auth','0002_alter_permission_name_max_length','2025-11-14 23:04:35.998753'),(8,'auth','0003_alter_user_email_max_length','2025-11-14 23:04:36.263717'),(9,'auth','0004_alter_user_username_opts','2025-11-14 23:04:36.338683'),(10,'auth','0005_alter_user_last_login_null','2025-11-14 23:04:37.188728'),(11,'auth','0006_require_contenttypes_0002','2025-11-14 23:04:37.235726'),(12,'auth','0007_alter_validators_add_error_messages','2025-11-14 23:04:37.302722'),(13,'auth','0008_alter_user_username_max_length','2025-11-14 23:04:38.279810'),(14,'auth','0009_alter_user_last_name_max_length','2025-11-14 23:04:49.178418'),(15,'auth','0010_alter_group_name_max_length','2025-11-14 23:04:49.763215'),(16,'auth','0011_update_proxy_permissions','2025-11-14 23:04:49.840210'),(17,'auth','0012_alter_user_first_name_max_length','2025-11-14 23:04:50.909886'),(18,'main','0001_initial','2025-11-14 23:04:57.921222'),(19,'sessions','0001_initial','2025-11-14 23:04:58.868055'),(20,'main','0002_drinksstore_price_per_soda_and_more','2025-11-14 23:18:51.486042'),(21,'main','0003_expenditure','2025-11-15 00:53:49.223208'),(22,'main','0004_alter_statistics_trip_date','2025-11-15 09:52:39.165691'),(23,'main','0005_alter_expenditure_info_and_more','2025-11-15 11:50:38.240512'),(24,'main','0006_alter_expenditure_created_on_and_more','2025-11-16 06:38:47.107625'),(25,'main','0007_profile_rank','2025-12-04 06:03:05.886038'),(26,'main','0008_alter_expenditure_created_on_and_more','2025-12-10 19:09:29.183264'),(27,'main','0009_remove_transaction_created_on_and_more','2025-12-13 08:29:30.027290'),(28,'main','0010_rename_created_on_expenditure_created_at','2025-12-13 08:57:31.417828'),(29,'main','0011_alter_transaction_created_at','2025-12-13 09:52:47.643989'),(30,'main','0012_transaction_created_on','2025-12-13 09:56:57.464250'),(31,'main','0013_rename_created_at_expenditure_created_on_and_more','2025-12-13 10:08:24.450132');

--
-- Table structure for table `django_session`
--

CREATE TABLE `django_session` (
  `session_key` varchar(40) NOT NULL,
  `session_data` longtext NOT NULL,
  `expire_date` datetime(6) NOT NULL,
  PRIMARY KEY (`session_key`),
  KEY `django_session_expire_date_a5c62663` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `django_session`
--

INSERT INTO `django_session` VALUES ('2rym3pzlha9f9zh62i1rbvbh2w1t8u62','.eJxVjEsOAiEQBe_C2pCGARpcuvcMpIEeGTWQzGdlvLtOMgvdvqp6LxFpW2vcFp7jVMRZKHH63RLlB7cdlDu1W5e5t3WektwVedBFXnvh5-Vw_w4qLfVbIwAENINXNGaDmAC0Iw3OjD6R0VkxlwEGmwgtFxOs5-AIEBGyAy3eH7f5NtI:1vUZ4b:Vi8AeRLfM0OXGhTGclwgtpZLsa0TNqZZru9rwlUZA9I','2025-12-27 23:30:49.106291'),('8fraiuxxw7o8ekg35371env7nolfgy15','.eJxVjEsOAiEQBe_C2pCGARpcuvcMpIEeGTWQzGdlvLtOMgvdvqp6LxFpW2vcFp7jVMRZKHH63RLlB7cdlDu1W5e5t3WektwVedBFXnvh5-Vw_w4qLfVbIwAENINXNGaDmAC0Iw3OjD6R0VkxlwEGmwgtFxOs5-AIEBGyAy3eH7f5NtI:1vTEu5:WWwLWcRy90V1PaZh8ZudiMBwoPu5i7gNP9juKjbwVNk','2025-12-24 07:46:29.214513'),('bitxzyycgrqya79s2pntpzud0a2nndar','.eJxVjEsOAiEQBe_C2pCGARpcuvcMpIEeGTWQzGdlvLtOMgvdvqp6LxFpW2vcFp7jVMRZKHH63RLlB7cdlDu1W5e5t3WektwVedBFXnvh5-Vw_w4qLfVbIwAENINXNGaDmAC0Iw3OjD6R0VkxlwEGmwgtFxOs5-AIEBGyAy3eH7f5NtI:1vV92Y:2E1Wq5sylUjopzKe3r8ceopCaN6OkuGWtN_AJMwAbpw','2025-12-29 13:55:06.501531'),('cmwl5u4b9r4k2cqahhhydirgybualj5a','.eJxVjEsOAiEQBe_C2pCGARpcuvcMpIEeGTWQzGdlvLtOMgvdvqp6LxFpW2vcFp7jVMRZKHH63RLlB7cdlDu1W5e5t3WektwVedBFXnvh5-Vw_w4qLfVbIwAENINXNGaDmAC0Iw3OjD6R0VkxlwEGmwgtFxOs5-AIEBGyAy3eH7f5NtI:1vVMLU:GzPQnKaoTFOLNctnCnX4qn38bi3d4DJenovad-78PK4','2025-12-30 04:07:32.132931'),('d0ph3jn8sf09opk11e0jldqz8m80ofxm','.eJxVjEEOwiAQRe_C2hCGFpi6dO8ZyDCAVA0kpV0Z765NutDtf-_9l_C0rcVvPS1-juIsQJx-t0D8SHUH8U711iS3ui5zkLsiD9rltcX0vBzu30GhXr41a452AAQDaECrrKNSaAxNdmTnRmQXASjj4Cg4S0A666RsYod50kG8P7mMNzw:1vKOLK:M6IKlsZ7ax1Xvhxj_AYSM0e4QWJ9hakalOxwz32rrAU','2025-11-29 22:02:02.317058'),('jdnty70zz2md0fq9i4dvc1477dyg7bs2','.eJxVjEsOAiEQBe_C2pCGARpcuvcMpIEeGTWQzGdlvLtOMgvdvqp6LxFpW2vcFp7jVMRZKHH63RLlB7cdlDu1W5e5t3WektwVedBFXnvh5-Vw_w4qLfVbIwAENINXNGaDmAC0Iw3OjD6R0VkxlwEGmwgtFxOs5-AIEBGyAy3eH7f5NtI:1vTPJd:_BHWPObUv42XnIKKZ-5K_GRSu0vZVeOsgOAFJG4xOlE','2025-12-24 18:53:33.991287'),('pw7yu5cdeay9ah2dud9or643hbajgcy4','.eJxVjE0OwiAUBu_C2pBHy-PHpXvPQICP2qopSWlXxrtrky50OzOZlwhxW8ewtbKECeIsOhKnX5hifpR5N7jH-VZlrvO6TEnuiTxsk9eK8rwc7d9gjG3cvwakrQMXsCNrTB5IERT3SlvljDPE3nVg3_nBM3qN-MU2WgDESbw_zIQ2yQ:1vPDpB:EHl7l8kjtLJXYduiFDZrL2rDq0tySLgzXHjYBJB3EI0','2025-12-13 05:48:49.437262'),('q4aan1b93b3cjshkbk5rj8cxbnpdq9na','.eJxVjMEOwiAQRP-FsyGUJYX16N1vIMAuUjWQlPbU-O-2SQ96m8x7M5vwYV2KXzvPfiJxFVqLy28ZQ3pxPQg9Q300mVpd5inKQ5En7fLeiN-30_07KKGXfQ0Kk0GOFiBrQMgErK0z1kGyyEQm55HQolUDJgVj2sMQwThCFUCLzxfwxTcw:1vVJF7:IfgzAB6nXgjmrYFH1zf3jR4Zdi_V3yVw3ZjrvODn3Bw','2025-12-30 00:48:45.766744'),('rkor9otd3hre9tedo357axthzus9gdms','.eJxVjDsOwjAQBe_iGln-4Q8lPWew1rs2DiBbipMKcXcSKQW0b-bNm0VYlxrXkec4Ebswadjpd0yAz9x2Qg9o986xt2WeEt8VftDBb53y63q4f4EKo25vZVB7Cd560mSsRiWcOJOCoosBG7yl4AwIl6TUhMqVbLPe-igDAgj2-QLxnzgm:1vKQlD:miXJ-_xzpK0G3J20OYjov0l5m44HBqQpMcq_KNhnU-4','2025-11-30 00:36:55.923745'),('usoj77x2udspfh4x5xzqiypkw13qo2sj','.eJxVjMsOgjAUBf-la9P0QSl16Z5vaO6jWNS0CYWV8d-FhIVuz8yct4iwrTluLS1xZnEVOojL74hAz1QOwg8o9yqplnWZUR6KPGmTY-X0up3u30GGlvfaGWeR1UDQIZrUe7adcsYTBHbMflJWk7F9CGmHLtAESINKhkF7ZhKfLxEoOMY:1vOuoC:xuCI3gr5bAvGGjTiDfopXIYMA8e67NW4b3ZOnNS1xOk','2025-12-12 09:30:32.560508');

--
-- Table structure for table `main_drinksstore`
--

CREATE TABLE `main_drinksstore` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `soda_store` int NOT NULL,
  `water_store` int NOT NULL,
  `price_per_soda` int NOT NULL,
  `price_per_water` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `main_drinksstore`
--

INSERT INTO `main_drinksstore` VALUES (1,796,568,11500,5000);

--
-- Table structure for table `main_expenditure`
--

CREATE TABLE `main_expenditure` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `expend_type` varchar(100) NOT NULL,
  `info` longtext NOT NULL,
  `value_amount` int NOT NULL,
  `created_on` date NOT NULL,
  `approved_by_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `main_expenditure_approved_by_id_c054bdaa_fk_auth_user_id` (`approved_by_id`),
  CONSTRAINT `main_expenditure_approved_by_id_c054bdaa_fk_auth_user_id` FOREIGN KEY (`approved_by_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `main_expenditure`
--

INSERT INTO `main_expenditure` VALUES (2,'payments','take perfume from silvia',50000,'2025-11-15',1),(3,'office','BUYING DAFTARI',5000,'2025-11-15',1),(4,'food_allowance','both mimina stewart',10000,'2025-12-09',NULL),(5,'food_allowance','tusxfasxgaskxvasixasx',10000,'2025-12-13',NULL),(6,'other_activity','MALIPO YA KUKU KWA ALPHONCE',200000,'2025-12-13',NULL),(7,'office','Madaftari ',5000,'2025-12-15',NULL),(8,'payments','Malipo ya kuku wa 5 ',180000,'2025-12-15',NULL),(9,'payments','Malipo ya kuku wa 5 ',180000,'2025-12-15',NULL),(10,'food_allowance','10000 mimi na dogo',10000,'2025-12-16',NULL),(11,'other_activity','fundi',50000,'2025-12-16',NULL);

--
-- Table structure for table `main_profile`
--

CREATE TABLE `main_profile` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `phone` varchar(20) NOT NULL,
  `user_id` int NOT NULL,
  `rank` varchar(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`),
  CONSTRAINT `main_profile_user_id_b40d720a_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `main_profile`
--

INSERT INTO `main_profile` VALUES (1,'0785943642',2,'conductor'),(2,'0789988686',3,'conductor'),(3,'0783791123',4,'conductor'),(4,'0758037062',5,'conductor'),(5,'0787407025',6,'conductor'),(6,'0759474295',7,'conductor'),(7,'000000000',8,'conductor'),(8,'0749951552',9,'conductor'),(9,'0747227822',10,'conductor'),(10,'0699071661',11,'conductor'),(11,'0678458614',12,'conductor'),(12,'00000',13,'conductor'),(13,'0678296713',14,'conductor'),(14,'000000000',15,'conductor'),(15,'000000',16,'conductor'),(16,'0624809834',17,'conductor'),(17,'000000000',18,'conductor'),(18,'0625518944',20,'conductor'),(19,'0785946213',21,'manager'),(20,'0695364192',22,'conductor'),(21,'0753182080',23,'manager'),(22,'0693875464',24,'accountant');

--
-- Table structure for table `main_statistics`
--

CREATE TABLE `main_statistics` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `trip_date` date NOT NULL,
  `car_id` varchar(10) NOT NULL,
  `start` varchar(255) NOT NULL,
  `destination` varchar(255) NOT NULL,
  `passenger_number` int NOT NULL,
  `return_trip_date` date NOT NULL,
  `return_start` varchar(255) NOT NULL,
  `return_destination` varchar(255) NOT NULL,
  `return_passenger_number` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `main_statistics`
--

INSERT INTO `main_statistics` VALUES (1,'2025-11-13','T 280DZX','DAR-ES-SALAAM','TARAKEA',56,'2025-11-13','TARAKEA','DAR-ES-SALAAM',45),(2,'2025-11-04','T 280DZX','DAR-ES-SALAAM','TARAKEA',54,'2025-10-28','KIOMBOI','SINGIDA',45),(3,'2025-11-19','T 331DYR','TARAKEA','BABATI',65,'2025-11-19','TARAKEA','KIOMBOI',54),(4,'2025-11-19','T 331DYR','TARAKEA','BABATI',65,'2025-11-19','TARAKEA','KIOMBOI',54),(5,'2025-11-19','T 331DYR','TARAKEA','BABATI',65,'2025-11-19','TARAKEA','KIOMBOI',54),(6,'2025-11-12','T 331DYR','SINGIDA','KIOMBOI',65,'2025-10-29','BABATI','BABATI',54),(7,'2025-11-13','T 183EJM','DAR-ES-SALAAM','BABATI',45,'2025-11-15','BABATI','DAR-ES-SALAAM',50),(8,'2025-11-19','T 280DZX','TARAKEA','SINGIDA',56,'2025-11-04','SINGIDA','MOSHI',87),(9,'2025-11-13','T 195DVA','KIOMBOI','DAR-ES-SALAAM',34,'2025-11-15','KIOMBOI','DAR-ES-SALAAM',54),(10,'2025-11-15','T 989ECJ','TARAKEA','KIOMBOI',50,'2025-11-16','KIOMBOI','TARAKEA',40),(11,'2025-12-01','T 582ENJ','DAR-ES-SALAAM','ARUSHA',46,'2025-12-07','TARAKEA','DAR-ES-SALAAM',23),(12,'2025-11-24','T 612EGV','DAR-ES-SALAAM','ROMBO',34,'2025-11-25','ROMBO','DAR-ES-SALAAM',51),(13,'2025-12-07','T 989ECJ','DAR-ES-SALAAM','BABATI',54,'2025-12-08','BABATI','DAR-ES-SALAAM',53),(14,'2025-12-02','T 181EJM','DAR-ES-SALAAM','ROMBO',52,'2025-12-06','ROMBO','DAR-ES-SALAAM',43),(15,'2025-12-03','T 280DZX','KIOMBOI','BABATI',56,'2025-12-02','BABATI','KIOMBOI',30),(16,'2025-12-11','T 195DVA','DAR-ES-SALAAM','ROMBO',54,'2025-12-12','ROMBO','DAR-ES-SALAAM',45),(17,'2025-12-14','T 395EGV','DAR-ES-SALAAM','KARATU',56,'2025-12-15','KARATU','DAR-ES-SALAAM',46),(18,'2025-12-10','T 180EJM','DAR-ES-SALAAM','BABATI',46,'2025-12-14','BABATI','DAR-ES-SALAAM',50);

--
-- Table structure for table `main_transaction`
--

CREATE TABLE `main_transaction` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `car_id` varchar(10) NOT NULL,
  `transaction_type` varchar(10) NOT NULL,
  `soda_amount` int NOT NULL,
  `water_amount` int NOT NULL,
  `status` varchar(10) NOT NULL,
  `created_at` time(6) NOT NULL,
  `confirmed_by_id` int DEFAULT NULL,
  `tripstatics_id` bigint DEFAULT NULL,
  `user_id` int NOT NULL,
  `total_price` int NOT NULL,
  `created_on` date NOT NULL,
  PRIMARY KEY (`id`),
  KEY `main_transaction_confirmed_by_id_d469d4bb_fk_auth_user_id` (`confirmed_by_id`),
  KEY `main_transaction_tripstatics_id_431efcb3_fk_main_statistics_id` (`tripstatics_id`),
  KEY `main_transaction_user_id_fd91d649_fk_auth_user_id` (`user_id`),
  CONSTRAINT `main_transaction_confirmed_by_id_d469d4bb_fk_auth_user_id` FOREIGN KEY (`confirmed_by_id`) REFERENCES `auth_user` (`id`),
  CONSTRAINT `main_transaction_tripstatics_id_431efcb3_fk_main_statistics_id` FOREIGN KEY (`tripstatics_id`) REFERENCES `main_statistics` (`id`),
  CONSTRAINT `main_transaction_user_id_fd91d649_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `main_transaction`
--

INSERT INTO `main_transaction` VALUES (1,'T 280DZX','take',8,2,'confirmed','00:00:00.000000',1,1,1,0,'2025-12-13'),(2,'T 884DEE','add',600,300,'confirmed','00:00:00.000000',1,NULL,1,0,'2025-12-13'),(3,'T 280DZX','take',8,2,'confirmed','00:00:00.000000',1,2,1,0,'2025-12-13'),(4,'T 331DYR','take',8,2,'confirmed','00:00:00.000000',1,5,1,102000,'2025-12-13'),(5,'T 331DYR','take',4,2,'declined','00:00:00.000000',1,6,2,56000,'2025-12-13'),(6,'T 884DEE','add',300,300,'confirmed','00:00:00.000000',1,NULL,1,0,'2025-12-13'),(7,'T 183EJM','take',6,3,'confirmed','00:00:00.000000',1,7,14,84000,'2025-12-13'),(8,'T 280DZX','take',4,1,'confirmed','00:00:00.000000',1,8,14,51000,'2025-12-13'),(9,'T 884DEE','add',200,100,'declined','00:00:00.000000',1,NULL,1,0,'2025-12-13'),(10,'T 195DVA','take',7,1,'confirmed','00:00:00.000000',1,9,1,85500,'2025-12-13'),(11,'T 989ECJ','take',3,4,'confirmed','00:00:00.000000',1,10,1,54500,'2025-12-13'),(12,'T 582ENJ','take',6,2,'confirmed','00:00:00.000000',1,11,21,79000,'2025-12-13'),(13,'T 612EGV','take',8,2,'confirmed','00:00:00.000000',22,12,1,102000,'2025-12-13'),(14,'T 989ECJ','take',7,2,'confirmed','00:00:00.000000',1,13,9,90500,'2025-12-13'),(15,'T 181EJM','take',6,2,'confirmed','00:00:00.000000',1,14,9,79000,'2025-12-13'),(16,'T 280DZX','take',8,2,'confirmed','00:00:00.000000',1,15,1,102000,'2025-12-13'),(17,'T 884DEE','add',45,60,'pending','02:28:58.457438',NULL,NULL,1,0,'2025-12-13'),(18,'T 195DVA','take',7,1,'confirmed','02:33:21.797418',1,16,1,85500,'2025-12-13'),(19,'T 884DEE','add',50,50,'pending','11:38:29.132232',NULL,NULL,1,0,'2025-12-13'),(20,'T 395EGV','take',6,2,'confirmed','03:30:17.511135',1,17,1,79000,'2025-12-16'),(21,'T 180EJM','take',8,2,'confirmed','06:56:47.416563',22,18,22,102000,'2025-12-16');


