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


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$kK1o4qwsBN46MH2NAWpkflrOwzGLP.pDGeTOjTh4aQv1ddpkJebFr','admin','ak_06ac5bea4e74b140','2023-02-17 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$zZKg.4/Lc7qkqvyb7fRPfl9KEdQVxcyRnsrwFlBDhMehGVRqAYibq','admin','ak_34c3c08d151d2687','2023-08-08 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$RsJYpMtePkxAvtn4D7ETLTgnvdRXKTjzC1uSHtxmiZYeNJyEa4Xmu','admin','ak_2e373c14a372346a','2023-10-11 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$TfhinhCUX.fs7P33G/gGZiTZ8/nCvAGf.xpOWlq5a7Kvzl0NkOmVE','user','ak_4340c48bee3a3cbd','2023-10-01 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$l.f4zxIXBa1olXwlGOFss/loH407hk1viAsXVsSxZiLfw04s21yI4','admin','ak_a2fca06d849cff48','2023-02-05 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$kThoTfSfUlwu6fghDEfhk5hZGU0Fj01XLe7kCJWPS2iE3J7I6vK4x','user','ak_3deeb7d053bb8216','2023-04-14 10:06:00',NULL);

