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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$Jo.ljcKnNjA3JJKTrI0sWqgs2j0m6dBH7oena1to32H8GxtlWHXgQ','user','ak_bc3a8edd6d114965','2023-04-17 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$rWx1zBbUO7Sda9r76Pd48oGEY8l3yqUDCJ2VA408KceAkCfkVqzw9','admin','ak_c381bb16728302b5','2023-12-08 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$MEnaIFuUjGjTPPrTbK/BzMD4nQQzZQqngZUTd2A9pNXeJTcYpi7Qw','user','ak_81bf8da6e5e81bea','2023-10-13 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$qFSvoqpVL9btoJV.dGfqFEOPqoAdfEzrzhNj/EdMPpId4tCJNh/yQ','user','ak_34c4e2d2c93551c5','2023-08-10 10:23:00',NULL);

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

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


