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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$6CmQfAOt/xQdO38bwjhKXyovbCDkHKKhjspbu7mkyiphZz5teBTmA','user','ak_13cbb1656301215d','2023-10-14 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$urQn4eP5BgjPPsdrM8zTduq4MFGqyiYWgWT9x7crPaOpeiP6HNW1R','user','ak_ee475bee82e4a03f','2023-12-25 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$a1E11wLm2vRs2wo7JP8Jco9jD3hXx8dApCYkv8ylBEoQ9hrGgOVhP','user','ak_928327bb7a85035d','2023-09-27 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$hQ9UsIEdaNYl83hgiwnqt8ffwZATYOpRDcIachWaVHMVErwQAnKWI','user','ak_354aacd90bfd2dab','2023-08-04 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$qf.wCzPVgTEKS0uYIjY0i76tlsS3s4K.aCqK3sCfozKzRjBMzN9CZ','user','ak_806c19349279a12c','2023-06-20 10:22: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=9119;

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


