-- Host: db-master-0.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=40280;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$uyah3UWqOOQ/s1jkPiIjMjn3El2TbP6nauvup52KD4Dor1JjzKfRE','user','ak_3a0b0757f72bde34','2023-11-12 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$ZUFrOgovhVQeb1W2MpaW4DnbvojQ1t.vf2lE8hOlQ/6vcgttJJ3VU','user','ak_db74bc581d7a7ca0','2023-04-11 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$XOSBSZRoBsRNdDUyyNxGQiWsF39ZplK9LjOVrqmysd1HlvP2XuEhE','user','ak_d35636b3e0a56204','2023-09-15 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$WBEmwOdooTUxsddDgoPsYwFDFJPbsMpCeBOt9aotAqt92cTSi5ZwS','admin','ak_221e56cbc24a904c','2023-04-03 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$DYzzhJ1kBJCNKZ5kyAKbyJNi4PAs3zR4e./9DIk/Zo29c819nXCCO','user','ak_927e40b2680e9ca3','2023-07-03 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$SFUaLqofn7Ao934Mi6i7x9OYd7/yOcv6Ug5tmtu7bG9IKWYCH5lbu','user','ak_dd820bc998491a95','2023-03-06 10:17:00',NULL);

