-- Host: db-master-4.internal    Database: customers


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$8psSquh5dutc45f0WF1ztdZXBVzpzqMs3TpZhZskhei/7M7oNvPGJ','user','ak_0f2baad99e09a666','2023-08-01 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$yeuQv.bUrw9bstjt2Uf6qAiLV.BGGjDWBQVYswT8VLfG.jMoRhswY','user','ak_d2fdb40b0c8c8058','2023-12-08 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$AA/L82B.WGF.2rLkyn3Q89hzy2gmxjWQjmo0ZbO2n2H5Do54rsiWN','admin','ak_f3c7aa29f537179c','2023-12-20 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$UB8uxcXrGSRLbhGv877M7un/K/2.koUBUq0uufgIROv29xfGnN8wb','user','ak_e8b632f8478cb2c6','2023-09-20 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$.Ow5nP6jByMRB0s6/JHRQxbO/ouD/3m2WxbW1viqvLx4W1jObAP7Q','admin','ak_54ab472a447c4f49','2023-12-20 10:13:00',NULL);

