-- Host: db-master-3.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=32279;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$lHruCT8oe2HjwYb2kdQ8Bh3WSbcL/6PyY48SXXNB.bZC9IGrY/OLd','user','ak_d7e4b93109045ae3','2023-04-19 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$8C3W1cAdcuMQpF2C3Kp40.bWG/4TAuPOYxXQMuQPrUu/cqI.kktdS','user','ak_8f008ce6946764af','2023-09-12 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$Bx57d0qPC5NjruOrphvrdvA4RzROcixNnZqqaCVM.NoJ/KJXKewCo','user','ak_c3d1a3b0b1c1c5d2','2023-03-08 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$wLZEb4bI9a0Cum/dsvRvauvqLkUg7RCWUDJuJbTYetcqXxipOh4OK','user','ak_172d7fa3a77c8433','2023-06-10 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$598z2JDfl.HCkMoG1AP35s00R1renVxQhGCVBjM5qmWbz/nZkcKjC','user','ak_9629b05a8257ba26','2023-07-11 10:12: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=15379;

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

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


