-- Host: db-master-6.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=31638;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$zHHWiSCKCmMFFLBFBgLOFMonjrIi76BJRgayidcfIpYBD9Fi4SrrR','user','ak_08b0d6eca0c57a03','2023-03-05 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$Jqe6IiBg3K3LGf3luA/ObMYXd4ieQYRmDJzA4K7erjT2hGDRMRC7u','user','ak_791aa96eaa3afc4a','2023-02-10 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$KtZJp/z8vtiu32GTlbch/BWJtTBZvaFiZId0PdNkAZahlb6SJCOMr','admin','ak_d88b19e679bba02f','2023-03-25 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$nwmzgK4tl8vnWvdhHmT/Pw1U3jzb.J2S6.upfTNhdn78Fcreqgst0','user','ak_855861b8f7ab15bb','2023-05-19 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$zC3NiJkv467SqCWmNm1rd.rVZs3DqnFsYeMZHMfz5kfp0J00yBRYl','user','ak_bd8c9d9462e7306d','2023-10-06 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$8vvjYLKB1BR8tn4vjQhwKT8.jrUi85Xpdy7fBe7zLaj9sw0uRfD3h','user','ak_afb85cc3e49a7143','2023-12-18 10:17: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=7990;

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


