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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$pfYxSdUDAOF2yanR6YTpIN.huUS9Cw5QquJ8DvxVc4xAyTXp8ZyeP','admin','ak_83fa627f23a6e8c9','2023-02-07 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$ypLJ2qUJZ.L0NPpoi8huwAk3zFt02gV11QjoypAwr9hIuOn7Dcpk5','admin','ak_61d1118cced83d5e','2023-01-05 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$OkwgLkrrlc/XwO1YS/3wG/ZNCDYZdyYqz.b6d6/NHk5D4Z.QIGq0i','admin','ak_cbe36f71b2821852','2023-01-15 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$R.nXLxK3W8IFxilc069T5THgtyxR0hgTsI6iFevDgceR5npiTJVQg','user','ak_f2d3819e1be9a7fd','2023-12-08 10:20:00',NULL);

