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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$lYNueZ26zo6Le4upsziVuVqsaI6oT4Qz8rczWu5Ygrgl8asAfiMtF','user','ak_72b8488c3c1d155a','2023-08-01 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$v7cu0ID0zsc5kafR936w67YvAaSsYCeHOW/MSJIta7MYh46XKz8Xk','user','ak_94fc781a48137442','2023-03-22 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$./F2fhScNdEk2owfStxQycuAew5lO3Mn/aa/hF9/yeDlBiyyAbwuR','user','ak_7e307dae623dde05','2023-06-02 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$2CYnfw/DV.W/IDiIhPxKhCDAtCFLLqAavc1vRi7ApfKN2425fbVPf','admin','ak_703f284c1f4b848b','2023-09-23 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$T93.Sv7/kTbRCaeV0BAFIIA/qKHuBXxEeStahlDfxfK2/p8NCRtPj','admin','ak_ce5848ea469cd878','2023-01-15 10:21:00',NULL);

