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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$2/DV0YMxZskZ3svIg9rA7nInJAt8qGQi.9SAceCf9dTpb9FrJQpOo','user','ak_228859e15a27617b','2023-04-04 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$OOh6h3I8gtTOoUH2lb2AQbg0GxwNx4uYIqLQthSMy3FX9Vs0o3yxU','user','ak_c19f336b345b0d6f','2023-11-13 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$1D8mlhRvWqmrXENRjVYEJuH1axtKKV/8ys0DgiTqEbUdQaiYuCOJJ','user','ak_54b9bbfcd969bf3e','2023-03-17 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$iOjitNgCtIcPpOsJWn4ieqG8iJyTFb4QmQkmiTYwSkH5xOTpwuWP1','user','ak_2e8acfef80a702c7','2023-05-18 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$/dHQqZchs0MTzLZ9fjZP6eX9DYbv80/UB8xsZAgsc2WrNWVrL3dVi','user','ak_5985ae80873b4cc9','2023-04-03 10:01: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=14664;

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


