-- Host: db-master-8.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=13011;

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$qwFcG7hZdAHPOKXm47/JQ2T9abgDoGXJLIYMplVlBJ0TLh.0n5T7j','admin','ak_189066028cb48235','2023-07-13 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$tokwjO6l5ad7is5uEpxA6EUTkRBLVSfpIHYN5PcWvYBe1X/TV1uJl','user','ak_eb12df74414da5d9','2023-10-22 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$x3hN70TNUtTG4w8NwuBBgnXv5jmemBqGIjd1r3thGPZnmLnvCWY7x','user','ak_d3fcd65e573fa822','2023-03-22 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$sroRe6MiYQi2o8OEuupDcBD4ef2UvpF3tMQnJnIhMY66.9O7mfz8L','user','ak_ea574eae1b5996d7','2023-12-22 10:18:00',NULL);

