-- Host: db-master-5.internal    Database: main_app


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

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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$7Sc8TYkHYqKe/BtTQsitqJPyyeLBzhtaLZlMvx7OmIXHAAhrqJ2kA','user','ak_87c395859532a051','2023-04-13 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$ziE1O4c/sOwU44Vxl1LJWtkzVOZIogLvXVTaxX2qRSYr22IQwpStM','user','ak_b3ad476e8f3d2708','2023-08-11 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$agRTgYASnNtPIyfDZUrn3MuclfsmEwBZ/JCgj3c/PiJnooCmBLOSL','user','ak_f7bec140b834c6ed','2023-01-10 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$NPISGRqysycldHfrUNogCCEN.E8PhkEULwXsbxEaLxI781v2e.F6D','admin','ak_39012dba653fbc14','2023-02-13 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$Apk1yjWrWnyTJ4bJnCPtlsHwIH.vs5lQHjsUJB3A6/FHYFCyHUSPo','user','ak_57fabc760a600cf8','2023-06-12 10:07:00',NULL);

