-- Host: db-master-5.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=7895;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$EMnNl6lAr9cm5O7SnB2882zp5rH3f403TGUMashl.ixnqFq55UUyO','user','ak_f2391ef8146b7793','2023-11-23 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$YK8NrMXfiRQDcHQm0.QpAqymezl/PGGASKUVbHti1vba19Jm9lAmL','user','ak_4a12854309c2db76','2023-04-10 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$JWw3Md6/qhPtsP.XgnPPFgOb5tsTxVPLrRDxfc1bT/omBm7Xfit1C','user','ak_3db9f9e3dd83cd66','2023-04-17 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$zOlAmkb4ww9xzSTilXAdlXx9HHez5tJ0tlUiQZKTpCyxUFK5y4klP','user','ak_8f1ecc5920429605','2023-12-24 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$T6CoSF/pnyYaSAUOXnx0uVpBu5sW/FOH2hXXCSrPPEnd/Y9JsMZ/R','user','ak_71dd69468a90e051','2023-06-14 10:20: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=24663;

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


