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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=44385;

--
-- Dumping data for table `products`
--


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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$fMPwOffyjIeuxUv9vAk3Jj/tpnE22k7D./5S6mv6v09e.8bqQppEd','admin','ak_4f2910837a555b2b','2023-12-15 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$OuwA4VnhSkZNcMpEws4G71JAj/4MKYJ.LutOEQKnD9v4jCB947Nl.','user','ak_379db42dc829375a','2023-11-16 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$kPVFaV/6Nl8W.dtZQHmQNI.PX2fjyNiWMi6mSKEnh/iCWl10FvwYe','user','ak_1230f4cf294b07dc','2023-10-04 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$asqgzRegjds7MZr.cW8RlJsNAu7iB4npJS6.VLjrjr7ikSFzNIfQa','admin','ak_4ad8bb02a7ec6c4c','2023-04-13 10:17:00',NULL);

