-- Host: db-master-3.internal    Database: ecommerce


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=40722;

--
-- Dumping data for table `sessions`
--


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=18707;

--
-- Dumping data for table `audit_log`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=29578;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$q8pFFPYbcXv4uiqUkjqKZg0wZGPf9pWFh5NBdWXsw7BqhJccBB7cV','user','ak_e70e82818cb7148b','2023-06-10 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$pgPP7N0Yc38ALC.2z524dGkr5hJBuu9tqQVOGQ4nTVPqsKoyAMX5/','user','ak_0d8b4b78e07b803b','2023-09-15 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$s23Lbnm08XRMp74X4X8lom5DgrbUIYRlp7RlB.HTAx25Z7qdpP5Lh','admin','ak_54290c206e6b228f','2023-09-14 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$RvZ76xAHitQjY69G41E33kO41RfLQ0zL27g4Wz.GzjQYD2zlwdLYn','admin','ak_248c8e462307a27a','2023-09-02 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$kV/pDF/9r5L4lnaZU3wUkkLxbxJisJBoPm8wNzZbTm4WJRsVO.MgD','user','ak_ad3c44880f77c8bf','2023-06-27 10:12:00',NULL);

