-- Host: db-master-4.internal    Database: ecommerce


--
-- 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=48698;

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


--
-- 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=42834;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$2WFZKBwHTDhgLbL2e3rx8pQcZpioKCp0j4aXrOcj6Yxfw7OFzoPBd','admin','ak_6cd49efddf7fc29e','2023-09-12 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$0Cll9DgRot54gTpHl3FYBqypvogKQIV5eK.8yQJfOx3lfWP7t9DbB','user','ak_2b73d7038d3acced','2023-04-26 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$H3TtybEjDRigkckFL6/cBzkS3Xen6uWUmerWTiiQviuACpLb5eZBe','user','ak_c3926d1d6e42f51f','2023-10-07 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$H30N6QfrOOEnvyJT4Twac2iNwnsJZE6sb2plst7Vj.fRp1W5EXTBf','admin','ak_01723527984928c5','2023-05-09 10:23:00',NULL);

