-- Host: db-master-0.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$bR/4.xSAqFGELSiLMjkbxU6KekTYJiYb6GpafwyhBa.Dac4VznNhK','user','ak_cfaee9b9eeed9595','2023-04-13 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$KvVR.EjcT.BIQf9wXBhrTaTSJDJnriZr2vOG.wrizdirXRq99HHHy','user','ak_b207d19052f4d906','2023-10-17 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$aEK/lsSuD6EdtQM4d/a696bGqGbUwc8/vROyMKndGMKfni/GTNysS','admin','ak_22263602f6609200','2023-10-18 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$tmud7hwjr8DD8AvPOtX3MtCQTkFlSTbx6ic7GJpdMxFJoQJBrZoiz','admin','ak_166dda3eaf31ee3b','2023-02-05 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$fang38P4NM40OJPIPZq952bwcf.vNgvb4GK6kWP.4WoHE/ecK3nYW','user','ak_4968c38c3a1d2bd1','2023-07-16 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$6ie3csZU46s/1PS4UWxETM7vvh9Fyom0acXMc7mQI30oeaGJFWxpe','admin','ak_63936136006872b4','2023-05-12 10:16:00',NULL);

