-- Host: db-master-2.internal    Database: analytics


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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$tdXffdSLlyfyzu987g02mf6dg365lCLMtKVMwAK.0TGTLVWe.eZWd','user','ak_ff34758864e02c44','2023-09-17 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$Q/7YVI5CF.0aw1.SztnhLocX4vcnlUQWmlB9Gw.UmbEANs9Fl4/3w','admin','ak_5b37451712ec571f','2023-08-07 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$kM.unC6x8.VRrgMiRYjQTVbNp9ZTN1g9sAqMbcbY2ldEyoi15MqEc','user','ak_3a563ac0391072cb','2023-04-25 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$4zMmRduBM1w0nFW4x7DAx.I.2hFOQdcbbcrQTWpUbrAZKNg4DLPZg','admin','ak_a1dccd56efc40220','2023-01-02 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$T5yKUSGgHEm5iWLNfWe07E0H/dt9xx20/P8as24nULWviE9U7D759','user','ak_84a395b7c866fb12','2023-01-06 10:00:00',NULL);

