-- Host: db-master-3.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=35589;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$Rm1NZOTSD9UG.wc8UMKaExYynOgbagfnswmPLW68J6pbV7ZZmwHFb','admin','ak_6a03c43c39b2c837','2023-08-19 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$YS8zWl/ktgVCf38Wlq1TrZUNZjNLfAJB8BzjpRcasdcLfGf1U7wsw','admin','ak_86842cfab7bcbc1a','2023-08-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$3DPUYMs2g5h/0Rvmo0xBz/8yLprx/3D3JEF3AVEsmpiOFJHkukt8o','user','ak_e7f31162f8d246f5','2023-06-27 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$oHs5N.r0h7KcbitNsqbGCXbDOBjozuhyCzBewEQ2GMkxhbE5x2A3T','admin','ak_cba251a5f02f444e','2023-03-13 10:07: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=9867;

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


