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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$pEV16wBwki5Mkuj.XYTGg4leXrurF53d.2.xdmoHzNkIbUuFd5KjJ','user','ak_83e0200c5d7c3193','2023-08-22 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$hcJIn4iSc0tLqDFYP40KS/mQYWdEc/PjLvNJ26RY55df2BQaJn1cH','user','ak_0a8ded7e0cd27f00','2023-03-24 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$yi5.OCCElUMdX/fP/j3BZjfxLuYTfu8kHhgYduxsXETz7J7RLE2bB','user','ak_77d42c2767bc984c','2023-03-21 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$o1J2LaR4a3N3LNle40fX/sERAP/vCodyJrpjbntRWxin5i2prVQ79','user','ak_e48816ff06d0f0d7','2023-08-27 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$KmqBHZYAhmC1XbEbhA9QYNRRd42swGbUDzxLPHrtQKngogkJAzyLN','user','ak_08258394473d8102','2023-10-03 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$UzeoJH8y7vBVxdqktkSQM2SLQ3/o6.3D5t1gYoPCsSvXUNtbFo4sI','user','ak_b87c14df7ce3940d','2023-05-14 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$8WZILd2kyrQwBIxJEtSwXar8q11Eetw8CiFsIVzELRiSRpvQXCngm','user','ak_2dd10e2a5c5536cf','2023-05-23 10:09:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=24806;

--
-- Dumping data for table `sessions`
--


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

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


