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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$7c6PYtYPs/0zyezHYjLNo5dA/is4oG7NK0iEP1A52EYTNVwf1zKHU','user','ak_5b9c31916e76f8f4','2023-07-22 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$IZ9lJRN/IeNmcVBFr4PhL.46ha3IxHRq/il.TBWTNZ2DWV.Mp4w8B','user','ak_ecff1dd1cb5ab0fc','2023-06-11 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$BSk3ci1/.ASi9bK37oIfqe8IEceSZDrMtdHRTCdM3V70jDNMmcPCc','user','ak_14c5d8d8f4522b93','2023-10-15 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$e0H9lHLk05mwLCqWJF9wp8YIsnkVrdGvKdlfXGnVfsspEe8tJsVHV','user','ak_7aca395f7a6dfe01','2023-11-20 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$ilVUrnaeqZdEcMdmoJGQrpcYtBKYtmG7QkW7NbYcDMp5xjZuC06xu','user','ak_5632f88069e355d9','2023-01-18 10:00: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=38632;

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


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

--
-- Dumping data for table `sessions`
--


