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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$BkzB841SNFnWLqK6JB1cmUlcKpoPV0dHCpd7/wc0bd165owBQVNsr','admin','ak_45d3effd174bb752','2023-09-20 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$y.WpeXrT9VscDXZcor3dyyWB5apuc6ZUru0FZGk107GLN6Qwg8CBX','user','ak_dd83dfe0a4b04906','2023-06-02 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$JGiXJhPa.P.U8uyguWO/rVOwqirvkpUA7OkWAyEXR12RrfusrsM2g','user','ak_6c143ad69c904ebb','2023-07-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$Ho5U7BMtmu4jTDLSQuRI9sQ5dC.3LqOa8iWoLvBbtCqZW1I6fcN45','admin','ak_9c5824b3b4dc26ec','2023-11-21 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$4chLwVeUMdS3Z6HwhpoA2y4CosGk5TIBO8lRhI05YNd5BkDFlZOTP','user','ak_83f86c671fa82481','2023-03-04 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$sO.SSu92SskLwZ/vR7uUql8f0QgZI/a48CJgsh2nwIk5P9wLvrtIs','admin','ak_def60f9f3ae4e74b','2023-11-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=1417;

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


