-- Host: db-master-4.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=21786;

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$ZX7N2E78chofcszBM0PvFUrUKgrCnpV6MABJl4uCp5Dwfw3my4iR5','admin','ak_53819fd1ec38bbeb','2023-02-19 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$.KoRRSXtV8baIOhe73bbksjsVVbf2bzNcwtZHcCzBzNupXVw4iKFP','user','ak_65cd7dae686e6045','2023-07-08 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$eUBumLZ3cHV87GGdBmok8065wU8Yd5tZSL.6SDOVHf2nCB.uoRvYf','user','ak_6d588e6baae41b4a','2023-02-28 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$uHeiiGAKSviL0QsqSl6chjUvcll6VxBWPcaJiI9AIBscyeeJF0uZp','user','ak_0601b22165851b4e','2023-09-21 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$pzZ77bmptWuccVnDaVKh7QxE.zzuQ.JAcmDBvz65Afzpy6FbXGLsZ','user','ak_1cb33fa7526e2579','2023-12-01 10:16: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=38649;

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


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

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


