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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$tQPRgR.uGkQy5.6cvs.mE6bufQMvNEPlrBBJ.h14vcKvp66tdnyNW','admin','ak_03f2bc2ca38a54d3','2023-09-06 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$xYyp4eRuxkAmyyIzpCOUePT.udLD2pFb/9a6TVKZckPcU7AZeuZyW','user','ak_61071bdd0312b12b','2023-09-25 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$VS2JFjRqk8BIjRu2LExjkzw498bkJZ8iVVHsDgk2o5.saq53TTBe4','user','ak_9bce6f316c5fbe7f','2023-01-08 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$V4BxuqW0vY.GCWoVkbLuJkQg.5fd8lWYhLaXBGLuWV7r/jdPxZz9y','admin','ak_5c24b07d92ffc7c3','2023-07-11 10:04: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=18499;

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


