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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$xL62evzhyJnRBjPedNYggi.RC7UQQ8zjLuOzup6o8RlL5Umjgll8v','user','ak_36858ab80b2f8026','2023-02-02 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$O1Ws1U61W/.Xw5xsZLg8gKYMSgoMHVu5doc9zMaeMd1jKVqfbOOIb','admin','ak_a8d4581637e243a6','2023-02-28 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$iwGPDb8QOh78u45g0.Z6piBCMh6oiD.IFyCrZg8tRlU9tWIUvgLQA','user','ak_711ddd5fa409a5c5','2023-09-14 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$As4fAtNJF.bDrUey4.ARrpMFHgcC0H6cq4pmVurM3kubLAYDSnlDd','user','ak_133c30aba1737e49','2023-07-16 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$bXsBlXOrqRnnaB79PjhAUzyRSvT8V0LYLn8vueuBQ0ZIqSbGHx9m8','user','ak_3f39a269dda7bab7','2023-11-03 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$/P14t.bW/sPPEBT25LMB9khrhUfoOeLSwat86R683wjvXLbdcwTJZ','user','ak_58e4f4d07eff0c8b','2023-05-14 10:01: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=26269;

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


