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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$dNqtulE..SC0kHP5.CXvnerZDpx2FArL3umJebAdG/aDJAUO5DjpP','user','ak_ed14e3e807e659e1','2023-04-10 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$8vDKtex3kICCQrYnhVhc89ZXCmm/0qRCAASl3uJchiPQGdgQjbfds','admin','ak_6215071de21e311f','2023-09-17 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$L8yPROUCwx0Y77Tb5tRczNocGRgeULlMFc/geEhbY8GVIvhtA./Ul','user','ak_d01087aaad1d23a8','2023-06-12 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$Vl69rTx28.oZa0/v6v1ffqAuaNkgYBsKpmC5971DYzpEXDxOQ5WO0','user','ak_830b009cca878dde','2023-09-18 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$JnCZPzP2RBiutCXWPE1SJKCjiCFbobheE.pn/LG21r78bR6N0uDnf','user','ak_8008ca3662a38c6b','2023-04-11 10:21: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=35639;

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


