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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$pHyof5KzX1H6X5iqeSrIq/17xUxks1FcVgyORKYsjCxRDC2PPGZFx','user','ak_2e2200053d337665','2023-04-10 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$Vw6GuYIxM7070Qr4MVYPOrbViUYf8oraD3wA/fbKWpP0zO7QlMI/p','user','ak_bafa98afd2d38dc1','2023-09-24 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$b4Vdo7fRo0D9Fo7k86.lU3UVxG.VpeDx9YlzYKksQPSucYaBL/1lo','user','ak_2b0dd17676ddd4f8','2023-12-04 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$dpilUo3IZ9KH5JP8L2X16O.6pdPzFeLS1EpFB5NhHBHxn7At9pDhO','user','ak_41e418ab54812420','2023-04-08 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$W4AvyQsMgGuSNDoql2nLNuM.sfimNNDy7YCIUCovZqaSkw/5ZOnA4','user','ak_faa3853c069ce115','2023-03-04 10:07: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=38405;

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


