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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$OxvY.qCbwz2aZXgBCoN1KpQQ6.WE3UwdHCiVOegxb08F36nDMD02q','user','ak_f813a330c4d3ba74','2023-12-06 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$HVZVl7dirorwGyo0q8L0cTUV837XzQ7tVoR/FVZqVZpsUDwlpvFGq','user','ak_8caf441e15e171cf','2023-03-24 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$Onn4xpE5pb.I/L9Dhf4qRZW7CJIuIafkUibmFYLd6Z7xA8lKJfgjY','admin','ak_c24967eb0a8da416','2023-10-15 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$a/rRNGsC1dkwXMT6CvspvsrHbjwbnQ8X5oKlW8R7sICJ9t.j.Usg3','admin','ak_a15198e12735a053','2023-07-08 10:15: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=41344;

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


