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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$L4y79m2vexQqSanzI6d1OIiFOuJ1O7P3i1WROLzCcmtEVf8T9Umcj','user','ak_f1a9ed652ce06642','2023-07-02 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$3FBJzjeGOVEdqYiy99W.15A5UWUWO7zN4oFqE7aOQjWoqIcgcn3.8','user','ak_11c9111ec9b77749','2023-02-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$Zeimp51LuKQ.gnUf6guQBkFKGx34Fi/YfROvjHsfjQ3DZXw37Xvkr','user','ak_a5bd86808dad5f05','2023-06-12 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$Rvr3eAiHxG11AFTToYAYEBdxOSYRjEnsngTI7eK2hfokowZcoDpcU','admin','ak_f6a9d1f0064f4a33','2023-02-18 10:22: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=36955;

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


