-- Host: db-master-5.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=46342;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$QHaD3jiIFnDiYEB1vflfLFnZKioam69K1dbLmCeaJ90tEx4Q6F85I','user','ak_fbfc8951cefc52ee','2023-09-10 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$5yRwb2/YPDGcuI8W9S7Bqfo40sW1lofyYAWx45r6Eqn5rnpmoubvR','user','ak_791c79705d2d7bc1','2023-11-21 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$XFTYGxtuuiMBtGI8IKklvv9oAOaaZ3hh3UbIPRYDzCdjjTZENTwDC','user','ak_b988cac06bcf3af5','2023-11-07 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$Dg01pODe79hATXoGJCNxoCn3cOzk/fHA1eyCee8vc5mI6jm4Dxw2J','admin','ak_8bd2e3d9980bcc31','2023-06-07 10:16: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=25541;

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


