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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$NgwhVuhB9jghl22G8.lPlAh101KFsdLPd4tRUVgiRfRLBRcpV99SA','user','ak_6ec06de8fcdfa36f','2023-08-06 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$gk25PAkeGPojhByUAByUG.kVtVs.g25uBjCy8/Cg2pVfQYt/oB4cL','admin','ak_0a531274bc62f539','2023-03-10 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Xm2LSp9yscxTUhVHL.aDiGO0GulBCii2wg2uBCycOA9f5R29xpn7n','user','ak_974918d0604ce412','2023-05-19 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$n7eYsDJ.L8Phtgd1PT/V35W37MYkHGrIVpljUQHQuRq5Rzw6gjKG5','user','ak_751065854d2b232f','2023-06-20 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$GUWLbEfK6aIZDZRk6kEQLDLe9a5MN1.5HyagfkUML3COIsrIaZgXV','user','ak_d1d05e0d94986921','2023-10-25 10:19:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=16765;

--
-- Dumping data for table `orders`
--


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

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


