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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$wybmFtAn3awQoThyXMN263euQp4sn6QP7Zk3m./1ixLXlMSFNTVu5','admin','ak_834ab119fcb08eea','2023-04-24 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$b7NMQOUNaky2gSQYIv6dTIOV8PpseavOlIKF1Amrh4W90G8GesSzk','admin','ak_eb792afb73951aaf','2023-08-04 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$rl8H7/Nhg0zhplOiUy03t6BWNdUTZsp2jbxoBWqb3Da2tozkF9k7i','user','ak_e0a09064e9989440','2023-01-26 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$AMP8KSL.dcZ5.RCH5dQPiAHGIfDwRgKHQmcaBLpCGcu8ttaq/98n2','user','ak_a774f0145aad4397','2023-05-24 10:08:00',NULL);

