-- Host: db-master-9.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$EXLLxRlm7ApdAmDpTXjTWk6ixXwFYPmpJa4OVB35YRD8mL9oIUPfx','user','ak_5851984a8ae175cf','2023-11-04 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$kpsxeDjfx1Ffinssu4MqNBNztwxitfEmR6fsCa7DSW8c6bQrYqHDY','user','ak_2eaa9cd4927b178c','2023-05-22 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$A/ShmIEbkbrcN4SUzCFfAqoSIogm4cC6X7A23ZYUGoMPj1Xj4VD7J','user','ak_5402e15d71504af8','2023-12-28 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$GdtaQPxXATDCE/EJGOfvpBJxrO4hhQaDIueMW7oscwotfkSqgw5cD','user','ak_7f04b7020ee9d827','2023-12-08 10:20: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=7109;

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

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


