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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$fFZLSiOVWu3QRLZNtdbEJe1uCZJmKn1aGX1O2WRSIgJuJEhHOvcUL','admin','ak_39017a6d0213d8cc','2023-09-01 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$MZcN.WfGsv/t6IBIWf8tvQ0gBePcZswQaSBAbmya/lZNdszLNHcuJ','user','ak_062a89eb84e9121a','2023-09-10 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$6ERQd6hXPaiXpHaqF7VDN2esdh7mC1582t02Qcg9WBhM87FSEn.1i','admin','ak_a911344e8b3a938c','2023-09-01 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$Emm84kT1MPFbHLWZlGeInNDeVP5Ilm4IXeEaNVK0w7Exx7DhM84KK','user','ak_eb7b53dba015f27d','2023-05-06 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$yc1QfDcVmvhTALOa7mF7OikdoTN7tYME7KbnaBrBbRRTtdOeC3dbn','user','ak_3c26212e009f16ff','2023-07-28 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$ek7wqdt/8yeZpmhbIWjpCyfgKQ7KmfvdfvfwbTGM0YU0QEaI6o4zc','admin','ak_c1dfe3b26f22a197','2023-06-06 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@example.org','$2b$12$Q8HkEXnoHNZK/1cASBY4MjjixgxD/xOYZDddvglD2xmyCrcDYkfJ3','admin','ak_6816370cee8a5dde','2023-08-07 10:20:00',NULL);

