-- Host: db-master-7.internal    Database: main_app


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

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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$UJz3024F1fJh.HPGLbW04wO8dO6PQzout9ZPO9x7rUD/cNhpHdVCG','user','ak_20c2ceb754db6a3e','2023-02-21 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$WkU.56DaXPuHSb5maAvq.CyoqihLrNLGcbmqQAL7eFBJrvJm5pM9w','user','ak_72ab2ed8686ce910','2023-07-14 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$PnVk9jFkraWv1OMOwgbpdabVS2UCraKDqxsVBmeEayGR3y08KocoJ','user','ak_7c1f865021cf1f1c','2023-05-18 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$ZC5f.AbapG9joq0vU0QiAT2rsW7VZLCruVvBbHBJwsgkb7J24Yhb1','user','ak_569e8f4c9a4a4292','2023-04-09 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$iVWb4w269xSN5ZKYLii3Q6MFl/LuGNkBjU8xG2qFamybVDmEJx5Tv','user','ak_b049279fb20913ef','2023-01-08 10:09:00',NULL);

