-- Host: db-master-3.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=10141;

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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$.XcyqAm9tTwe1Wygl2CF56jqy2uwN/28bIyY5BJP0reM2cEjDtFXt','user','ak_79755657054866a9','2023-10-27 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$AjQo9IZrCUoP2P5owswcWZLSWnTo3zwa7FiQuvFE43O0ROgRj9Jyp','user','ak_d6fa42673b2a9c74','2023-05-18 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$nHgrygYx42NsgDwX.z.fTCiuCEUkyfBzSCK9qaH5Rfbno82qeI8Ay','user','ak_ea4df3232912a8d1','2023-03-22 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$9iWiODUN6j2qaRnE.zrSxVkLCwN4MGZtbQ.zBLw1Yv0KQfOoQyHvQ','user','ak_8d24b9093a0ec8d2','2023-04-23 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$qXD9CCF/0ZVdfdeSqUqFp6OniY1lQStFl.M5zT7fHIcBtaa/DMJvy','user','ak_248520022d88488b','2023-08-08 10:10:00',NULL);

