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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$7un0zYf7xm6rmWBntyeeaFD4g2k0AXwEUC4QM2xoNrx8MF5/m2d//','user','ak_589e428e0a0a6846','2023-12-08 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$T1Ty2qaYPOwC.3ASTzD8iw9UEx6R1fJdjKS4yo9r8xUzTbsQxVQbA','user','ak_071599edb7f4632e','2023-09-20 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$3CfJ0ou20zGP92TCGhjS.Thp1ROTxKcamcIi80tkgBSnZp5P7Ry4r','admin','ak_64c363ab24116496','2023-08-15 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$C6egJZDhHSRF6eNg2g2nMbXOauOpQ5Nh9lO6V9TJxHh7m0QcxOuEF','admin','ak_4b9a82c640c775d4','2023-12-12 10:02: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=47971;

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


