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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$crJtpRB5F.QVfKgmZSQiPoNFNrlzcsGc3J1lrK6mubny3Ga89Wx9o','admin','ak_7397d5873be50402','2023-10-16 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$r.K1otMoryO/0ODqY93bXmShH2djpP531ZkVZYIDI80xOpoeyMdsV','user','ak_ae826cbf722742f7','2023-12-13 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$l2i8fofLASZ/p3HZYAWLWgGEjUBNn/Y70IWAdUnaTocrDulMglJkH','admin','ak_a825e2c707ec98f4','2023-05-13 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$/8XzGE3JgiJI2R.ySKhE/UvU7STR4TVLgROI42LJrGNSbbzEqNQCY','admin','ak_8aae4f2ce4b25f53','2023-01-21 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$Onm6sF9rS.uWlff9bkUhzq1CIt9I.9LXrC7n5nNHEODbztOj4t/qq','admin','ak_85b2556db1ed9ee1','2023-03-26 10:13: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=20424;

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


