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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$MZcIPX.NtniekxTtIetOk0/coSC2Ud2hrTOzTkKlunAi.nnd7j//v','user','ak_abebb956d7b70ff6','2023-11-01 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$9C/qEgsMTsj5yvhyVMVRGrgIZ5eJcYQAR60.88Clcv0vcMEI8WTSX','user','ak_c88560d30510f710','2023-04-23 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$TvGs0JiAbNbkCHkD3aBhT71lA8gMOdgwMDEMYWPmnyqints5fvfpx','admin','ak_09c347cf1e641c6b','2023-01-06 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$MzoKWzc9DZGPF5z8YS8wxWVn.2hc.RD2CWmKh44CtWBGS7z.F0LZt','user','ak_b7822cd7165d9e50','2023-09-25 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$u6qgFLrjTHDNrCaEoUf.9DkakRgxQD2krJSyy4dK8esPlGfNtz9x7','user','ak_4526fbacfcf4dc45','2023-06-12 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$qcq1dDgDy.m/LoNPNSYPLf8Xm/4jDH3cCppdq8k0Y8cPwWaiN2vya','user','ak_422d6419eaa008b8','2023-06-16 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=29222;

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


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

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


