-- Host: db-master-0.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=33637;

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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$fz0xh9BXaVwwfA/jAxF1PrMeeOzpADU.gBiwqmvDXrMGIRqVZCtfV','admin','ak_e5681f636d1fc21f','2023-11-19 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Jt4qFfo2Ij95RHFsRdMB8TspvnvhpI9nq2fWhjGk5gLiRup5fHrJx','admin','ak_f7de55cd82568a32','2023-08-08 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$fkVCm4UPrtFO1AJRM7LuLP2Tk/4qDZ9Bh5Po6Ity3nOfjVORP8V8v','user','ak_53ed29b6a6b51bd1','2023-12-05 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$xZdPOAtdC8rEGcOE2yB6yQHxF/zE9Vi5oxYOPAfucObr70tjHjwnj','user','ak_06c74a505f85cf42','2023-02-16 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$51qtG0i4k/jx0Mib9e4N7qI5S8twST6bp6dz6ZTg5ZBzkR.sZge3b','user','ak_5fc464d1ddb5e8dc','2023-10-03 10:20:00',NULL);

