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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$0dlf1GIzlZmJ38EwHX13K9SN4ABiB6JEc78jHqzeBLhzUtn9GbOJ3','admin','ak_489f2787f490208e','2023-10-20 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$5RltB3kKUTrQYtQ3HVjMoGfhtkSX0pc3F5QIEKkxhv5bHU2C4IaV.','user','ak_61bb8d231d5737bf','2023-06-05 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$wQgWzeh6D.9w5kMaq6xrJuwsIfpFS5o9jrmN/TzCTNWs2hQ3rRJ0v','admin','ak_25a73bde84f4f3db','2023-07-06 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$qNZFGPHGKyIs5Bw7pJnxTMV98xLSxJLSoBNe5iUVOeRO9MLFqqq9a','user','ak_714d73870ae90775','2023-09-22 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$G69Sv05xmI2rH/KQqfM22Lh7L83zY3Y5Ne5HcvRhODdfNVyTrxYZe','admin','ak_24d1b6ed17621d12','2023-10-01 10:07:00',NULL);

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

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

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


