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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$PtbOiXB8GpX2PFml4pSEuHePf4Wsw3mtX/ZJSAitYkmbyPTnf1uGM','admin','ak_2324cdb132831280','2023-03-19 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$vqWgxU3BKFbMzmqp0yGkIfzf1yvgBhJDosmOr.WwnFoVjb3kjDV3h','admin','ak_010bf96afebfdb25','2023-09-18 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$2Ps4mxlVh5Dd9FdMpinmFxcabKvTT.igLiaj8RJaQISRk0uwIxVGG','user','ak_b357c6ba973adef9','2023-03-26 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$pchDvJ5IyXVqp0nqAi1R51HApIxFzlN7aM4t1V/7SVcaVkNeobjR/','user','ak_65f3f98b88abd574','2023-07-20 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$01V2pZRlK06iFZXtznMFs2uKWhvdioFeEC9G7grGvtSbe2ZYt.4I1','user','ak_f98a97342f52fc89','2023-09-14 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$Td3zjN1yU2GY4izJqNb5n3OFQn5o1pLegcRUn95tLW7BAhtVxJ5zd','admin','ak_29148ba5581b7d03','2023-03-05 10:20: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=7476;

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


