-- Host: db-master-7.internal    Database: webapp_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=3328;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$H84KvzoonbgUpK.Lz/I1xt4Gl5v7NVIa8GlkdWKDjw7xM4DqqmLQY','user','ak_4d84aeb7bcb32873','2023-10-05 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$y.sNzMOj7uSV3aITwJjKTRlqJO9ScN0I.tC23fHnsjNRI0Cnx2L/W','user','ak_98db18f1eef1e43b','2023-04-25 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$n4D.U2oYCBjhxyVu6tMopu0QivL2tSjZg95bLku1TArpu8hzHCG.i','admin','ak_719df330e193c7d7','2023-09-11 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$fI7BiqvcsAwRYy9.3hMt9VatDnufLZUvuhMKZennWD1hmC3aFFqyd','admin','ak_67965335afbd5ff8','2023-11-15 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$6gUQh4FM537zTgBnmyHweBMtngv15qPGUL8Z3kdzMbvBsAnjugO1b','user','ak_86a06b5cf8b1749d','2023-06-11 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$7GNfMinw5XLIgybpKt8054z7wdguYMBVAv8PaWf/iXPjM1599kZGQ','user','ak_2484d35b26f02876','2023-03-27 10:11: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=29933;

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


