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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$nUBRlilYr/NCdxDN2nwF7XVDSri7kX1JfjD7Pogw/rlm2k7ttjtTv','user','ak_f3d2563296140325','2023-03-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$rYL8XaMNR9ERDSYc0D.a2pBj5yp1RqflXGdJuIHsKnLyzyIozIgy1','user','ak_fbe1edecc87a2bf9','2023-08-10 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$gf/BPcJVuAHkI9FdVY8tIllJtUX3D0AkM5qGW4/lgHYzD6./9cNzn','admin','ak_f489c72343d98c6c','2023-03-03 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$BiUYHEBqMtBoV7I2QN7347C8ixfey9z/EtAF9vUuYozfvDmaZu3Ut','admin','ak_770819a2998ae12b','2023-08-25 10:03:00',NULL);

