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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$4GIyqt1R2MvHd8i1YqyOb.4M3TlF6BKUXDVEpM0BtBD8FNGsCR00t','user','ak_86773498aa4b0250','2023-04-27 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$1Y9m6UO8IlExCU0w6RxKjWPYjD1EtgZZfIMWGkh2TC5vjd4QuUgFb','user','ak_1fec2b2853f9c911','2023-04-08 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$KSkt4NeN36R5ZoKWYVaT3PjXnsJMGwrMNgEqcSRUzJfcIVr3lWg5P','user','ak_8b920a92ad3b2208','2023-12-08 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$zTSsNzl5NrMgFY1w67ppcNNeiJHDjkC7UsuYdPXFZdIW0bh0chk.M','user','ak_78bcc9b276f11284','2023-02-07 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=25306;

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


