-- Host: db-master-1.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=7424;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$06dKkbcz9nYLAPfSOz2.lCh0PbtdP70dBwCvJjjXgDo6PxdtJEzB5','user','ak_ebade9f846592d49','2023-01-13 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$uxdxx6wpl7lXNk8doRKNh2QECBBxD9a/mxiCvepxi8DtgRkibutKe','user','ak_f28b600fb263fdb3','2023-08-19 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$7WTK1GE8rySKY0yW6wXsvrUa442GYMT2VNwjijBGPXR3US4azh9KH','user','ak_81d949a1bf13b049','2023-04-16 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$k74kbT7KCyGR33qOLgGF20lK23bhSQGvZNHW9xA9sXtm0Q/UqsMAn','user','ak_beec61a45b4a9994','2023-06-25 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$1gkGi53danQ0Z8qPafPu.2UqK0XqLf1cCqbvVFxrQ..QNUF0UE14k','user','ak_3b8a73bfcfe33f23','2023-05-26 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$dWsZ.7e/QKyqBgTjAs4o28rmC1hSTJ.SgTj4KaCdGNDh9g8d1cgm3','admin','ak_1c2a265aac377fa0','2023-01-06 10:13: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=43000;

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


