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

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$41Oge1O8/1U0hcPUEdxc3mhh28U5WBoWDy5aLM/JMn2eJW3PqZiIs','admin','ak_357f6aff971fc8a1','2023-12-10 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$s89Fikmzxjs9dXVOSZ9mniXRch5k3cJqnU.6zfcD5nAKu77Urf.w4','user','ak_3d2b6cb81e41138f','2023-08-27 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$b9zpH7SeyVdIShrVH3GOxhbCmw3lVErd2tjPGWAarm3Y5hI6pjMIL','user','ak_6e1f2d52b704be3e','2023-04-26 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$tnsH3NmMHEtJOT3ZwXKuY2kWmBU4.SKLQP1ln5kJze8FSjBhRTtzr','admin','ak_5452de0d67812a6a','2023-05-21 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$n1bW6k4UWhZEEu7JPMUaHPxfztfaGyzbYx0QWkzXO8sHshQqSEsG2','admin','ak_6ec6fb7b6f300ad8','2023-04-18 10:02:00',NULL);

