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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$xV3Lz7dyECOICj83TTov0D7qJpKwGBV0dm6dB1eq8pHzDniaoCa01','user','ak_0fc024321725d441','2023-12-25 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$vnxXoRBD8BhzNV0Y.sXZ1t2NMI5JQO9fX3v5JG76FAMZDj9JMqa2x','user','ak_bd24e457e185b812','2023-05-28 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$o9SrLR5gwvU3KETGKvj3uBKqeRmY5NfoIakkYHZvhMBrzSCUt7B86','user','ak_fc400129e6480bd0','2023-04-10 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$IOdt5TAumAys7BQn/o9ywf1UhVa7T6.ERPbJNkNqyqsp4yTDdrf4m','user','ak_a77d4c5976c5b1ca','2023-12-01 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$goQwpGzV.Y4rp1B3.2o/3dqJsGzNAd8yxNJaACHjIN1.U3OkFXkFA','user','ak_a3bd119d1c84a1e3','2023-01-20 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$EVGCmUsAI6dnEsTFeLMxVDk3H6oj4n6PgeoMHrvH21W9/7kAZ2x4L','admin','ak_ef57c457ddcc8458','2023-04-17 10:00: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=9090;

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


