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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$G5NtPl5Rtf2yDLJIWlS0vtr3VFhFj3l/5ns88t4meXrNfXF8zXnHl','user','ak_2f38261ef988a02d','2023-02-15 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$vA0eP5eWc3YVp6erzesr2NHFIOYHQBKdb1iyDlUQTMwPYS1u6pL92','user','ak_d3192690e2016e73','2023-02-23 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$WR.LIzg8gk70Ptu3cnqLc09Q/WbXdB.jSnK/MrAjZXQyY165MXqj4','admin','ak_fd5b528511955591','2023-10-10 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$EdIBhWkN6pXneotN779qWOVZw6X9/o.ZC6EiCEeqK41WLB8wLSma8','user','ak_e688862fd0019ba8','2023-05-04 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$IKTai5XxVzV40HnILPDQu1pefBaUOa6z3PNuWvUlJaYTxttI73Z.a','admin','ak_2efa4162dd740555','2023-02-08 10:05:00',NULL);

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

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


