-- Host: db-master-1.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=46650;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$80zZrW16fpb0NVA1JVCsuJrP8aZwz2E3/T0aVcjzpMJZlgQFLMiye','admin','ak_a733b99acc055509','2023-10-17 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$J9WpyJFyHOoJyjJteZMAUL4PTfqs5dJPKgRz8HpEsDgp67ExtLoD9','user','ak_04ef07e7983ccc24','2023-03-22 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$GM99j2Y7BG5O7WMgcYu.EZ5krLjRp2l2tILXsIjAtIgX6y66P7Uiw','user','ak_ae0d8a04e8dd2ad0','2023-04-06 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$Ok7S1jrqPwPorueCRz7EXa1iwpO0aXC2hufe4lfX1QxhkQHRqns49','user','ak_131ae16e4da49338','2023-08-01 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$NfYxLH7r4i5r2uUQCl/O/ylsmb1xJy9OZ1qRvLkA/yxX9/tQLtbHB','user','ak_1687b923cc5f414b','2023-05-08 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=42132;

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


