-- Host: db-master-4.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$KNNXl9cTL4NFQHWRoxCHu1NSAPrpX4lquX1PLQS4IxHmgKtUJHFT5','admin','ak_f8dbb420c1fd4d64','2023-08-11 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$BhqGQUW0VvPIu7FuchsN2dc6bhHhJTqnV7gZg65f9M4yZK4l0wuel','user','ak_6a3d2331a7b3bcd6','2023-11-16 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$WPGGeBeNscUFW3Ij/vkN0fZpDuh/4QF1grpnrdShDXqSQUDpJ69a0','admin','ak_cf6b3e8b81b3a0de','2023-03-17 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$JeEOd3WEojsi/yvYRN6oL1CIPeC7ZzWXfJ5q4oAwSbPwhT6qzBddi','user','ak_fe2518e842544be2','2023-02-26 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$a.Eu94ygmGIuzrevgpv..JfAmiNTAeNQCYEjQHlWEBU.Y8Z0mRzM7','admin','ak_c383c8958ec6099e','2023-07-15 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$LMwo7FW5ieIu83Zl/Bjdjou15RCcWWIsDjmyM0WIaCXIf28DaG..s','user','ak_6b1f0cb0e9fa91f3','2023-01-08 10:09: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=21445;

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


