-- Host: db-master-8.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=30886;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$bIgJ76KPKrk7Seg.RMjfbfsjAQF9k9NS/kg5bkAclyZsA.YzX9L1G','user','ak_d9194af63af5ad98','2023-07-08 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$k1/d3jBptRx6wd7lc1tZB83its1OzXihtbRq6s6Ekqfc2Th56NI3G','user','ak_3c030de8b8d611f9','2023-04-08 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$4BzQ/gpSUELElfXpgk3CNQSOf/A6MpRDF87lKxADjA7I778S1zXzO','user','ak_d8f8bae1efa74d3b','2023-09-11 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$102UX7ApvsDoPQiqswZCwr6elRLLPWVQM.jUwpQvO0aDai2EcFVQS','user','ak_c0801321b25f5406','2023-08-14 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$UntWcJ2c4cXWmTfoSeALVCKwBSHg1LlEHz4uPzkzUUD7hjNTy95qC','admin','ak_da2905655c4762e0','2023-06-27 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$NbdFuFA21XYBBD/1pikHKiJWg/bjviEAFZVZqT0Y2u6J/K4JeCWAb','user','ak_2b5443739c940de9','2023-02-12 10:00:00',NULL);

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

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

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


