-- Host: db-master-4.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=50194;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$cIjs5QIqJCIXI2o0osRlpkZCt6RGteeDSVdgUsPk9aqWiKIZHfqJa','user','ak_03fd2d85d36aadd2','2023-05-19 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$7UFigiIFxxy4KJvEEqGVyVIac93zrzPP2qGchG.ms11C6GusfdAdQ','user','ak_4d273ee9787eac62','2023-03-02 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$UY51tJMJ3NvW.fEUdpH2IpLi557ppA2LzJZx7OeDwZeNgY2c7io/m','user','ak_8b54c08599bd99fc','2023-08-16 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$TBuEQ/nabFnNmaDslMBFQlR6qy2peac53Y3U0b1qFPgM/j/aH93Td','user','ak_d5c380d42ba4c4e4','2023-08-09 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$kTy/7.AbCzs6HPfXQV6ZKq64./PsfxtR7GpvFjxeTiBeH7LWawMRM','admin','ak_65ed0ac53581a1de','2023-04-24 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$Dm/9KD2lK/PRGFO3.ZDGWZ9mKr0pAJD2kibzjXsd6XsJgqSHVxmXJ','user','ak_8094e17490e75f4c','2023-02-03 10:18:00',NULL);

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=19502;

--
-- Dumping data for table `payments`
--


