-- Host: db-master-2.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=35849;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$jNmGvSi2cTRHs2KLgBf/h7AkeVxZcpiwY6CTvgECuQOr/HOOvFECi','user','ak_f1010be9a3782510','2023-04-08 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$nQexjyirmTk95wNUtEjmg0F4urXNtVo/GER4P4TxA6Ng/9XwPEIvQ','user','ak_b34e175f9b6a3c17','2023-10-05 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$32/Cnc9pHGYhG3UOOBvmnV65JQb20apj25Sdtq2OgLzX/Zc7KUNtM','user','ak_43d1970abbaba937','2023-10-26 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$MukeSPkn4uxNjyOrY1hO6SU94idtRwN7ZmLP7VcEEwAkcws09aYsW','admin','ak_4b5eee36c28e2349','2023-10-06 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$c0ZhMhse9n/qbOPv/FHUQZA.szD4wgCv8bOAFbRiPzwV1GIvcQJ7W','user','ak_cac9eb3cc23d8850','2023-05-28 10:22:00',NULL);

