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


--
-- 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=37985;

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


--
-- 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=29788;

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


--
-- 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=26199;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$ecT3BleIA/7XxG8YiLoWhI6IcTxOu3PQQxi5B6L2UyRKivZ9ZIDBu','user','ak_68e829f529cc56dd','2023-07-02 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$F0Hkc/x5VG7Rwxiemj.SZCG1Aieb4d8fnaIft0hRjDsyCiXNUpx0Q','admin','ak_0e17cc77a36b210c','2023-10-22 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$eoToafgX.OVx/RCwqPJWfHNKJb2FjcCQdKdEBIx8AckDodXWUR8Wn','admin','ak_05b9155cbff8b912','2023-04-22 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$QoiApYL4fCK8MdKLKNi//yIMWjukZE3JOAfe6jgR2ucnO/cCLo910','user','ak_c87f4a0bcfc8b91c','2023-10-07 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$kLKFtI6KCMrYuHrSkNuGIXBxwminqEeQ2jppSz2YDOsvMmWl4yu85','user','ak_78aa813e35aba724','2023-03-08 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$pZK3jr90iodhDjh7N5vUL/ADJL5djasUjjEr3KnidjYzkM3yspBHc','admin','ak_e0915c40eeae8837','2023-12-04 10:17:00',NULL);

