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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$TEHddpJLLiAjDn7Kr/isI2J56fGFs2aBoVA78Gjy78L0I/ERO76/T','user','ak_b0d3352a3091c0d5','2023-10-12 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$VjMpuZacamjkwJodHuqxq5eewhP.trM2DOMBIhwIS5gWUY8yGK0R/','user','ak_5da26188449983af','2023-04-19 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$lEQGcp96oMBM0FMK3HjZfSojcXdrxJWdYMmSK1NtUdnluoJwh4q.t','user','ak_9df55a735be84e7b','2023-03-04 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$PKM6KTPGPF4iKLiy10Va2q/IzKfzMHMFuuCOp67fV0qDvYcbrLnQd','user','ak_e473ca9785244ab3','2023-05-20 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=16896;

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


