-- Host: db-master-5.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=43435;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$O5WpPTXHodiHWm0875BR8CxUIibQOi1hIqsZwtujT8UHxXbrJirRX','user','ak_947337129af8b999','2023-01-14 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$IqMJV8F7Io4jA9Yu6xLwzLPU0KJq80AEW5vujbMqelIYuXr2LQJhD','user','ak_f07d48d5b1330cf1','2023-01-24 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$4bt9IFenOUn378eRBRZcZRC6ybPxGkiEtPin3Pdy7tl.BZ.nGd.0z','user','ak_399efe3b78c2c3b9','2023-10-17 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$gZvP1Redq86.T3bkMt2hGDxrpByHtWj5dUdTTvV0rcoyEx6oWCU5P','user','ak_7956c784094654b8','2023-12-08 10:02: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=5378;

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


