-- Host: db-master-6.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=19385;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$AJgU4KJVuo.Qp2Xef.6x6nqPD60cdhC2V4YIVriKrKEN0xm3ny9u1','admin','ak_73a0b81713963b79','2023-02-27 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$fYk7YwG6K6dcPwF66O/s/jB9Spl9Qq2qs/W4gk9wKzysxF6pERmI9','admin','ak_f2a1e69f52e5f3f8','2023-08-23 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$KKXP3ece2nZP8SaM7iSygcQTBZ2DSyxyvuoRdaZhUYXMT0wo.uao.','user','ak_d02dadd9446a2ebd','2023-02-07 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$.XIatC7FHsV.ofCbnfnSnY45.4p0MywX41p2igZnFmhgNTAv/XSWI','admin','ak_c0f9c1d1bcd28cfe','2023-09-25 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$Vd.0TwCgSDn3p6FdoUqYEerHyfxJ.zawwMQC/IpD4kPefSVLK60Di','user','ak_ce4f5dc9b3638cf1','2023-02-20 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$EP5T367gahU6LC6M5UAYxmzt9sAfHk5C51pE3LIPdwj1D5x.Q/ujY','admin','ak_6c071a60c1fc58ca','2023-09-15 10:16: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=42428;

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

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


