-- Host: db-master-1.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=14360;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$msEYo8uyMKPQ/IsF5p2F.5lSkHX.gYen9Rk9KDzcnZq6n4OlO88JH','user','ak_fe4f78c0f154e1a5','2023-03-16 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$v.tuEJwm4LIRl1.XOF9.DHg3rlW8A2Q2aXzb.4WFUZRxMBNPUbNg7','user','ak_df3b6073042b622b','2023-01-22 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$fOumKQJmFWmfplHxLXAdnYiFBEr7Su8/oCcwgEW3vSZnHzzrC5h5i','user','ak_ec6b5dfb46497c49','2023-01-02 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$z0T7xA..Mn5Yez7SdmVj8HBiDhfcRTIdZL/cJYu663Mf6xlqPScZs','user','ak_03edc8f3528f3cc0','2023-01-28 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=38870;

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


