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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Ieo2Mo2mPM8R8uqZNw4fXfK85KlhFYDK0CAzwT5h4zb0WLWehj7Fo','user','ak_749717f3ee544de3','2023-09-11 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$BI7UBmvS2AoEofR6H8aDgndtvU1Siea6SSQ3uxYDy3enzncrP45QJ','user','ak_f31fcba1949ac18e','2023-09-10 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$oe/Me4eJblsWkHYz3P996gSktsbvnYs2kMvaRwrzZmNpcuIRDxvc7','user','ak_cb049323aa1cb9d5','2023-01-01 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$wJ3Ulpxdrx8z34WodEZZgiCVWXEsvP4vBKxTBrnCZ2gICRUqP62iC','admin','ak_a4be0f8d45ab435d','2023-08-25 10:12: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=15422;

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


