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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$OSXUH5Jgb0Pi3GamA/2cYJ/PKJhECUJeteFtha6xfozMGPdFbnLty','admin','ak_ff1037cc798e4524','2023-07-14 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$8kqTbgGiD.CFJXnN9jIHkJLvJiV.avrZFVjXtORhGdvuj0mcUgkn4','user','ak_582c1ae0b3eedb85','2023-08-01 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$B3gS2zgisBpwmC3XM0H08/pUECnFIobO26m5rebbnwnedcRF48LN3','user','ak_ef3ce624125d5c93','2023-01-02 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$TXa3bt2CaG6ahDoDUVn1Li57DTqA2tSeHgBnoQFJ769I72eY/Wfle','user','ak_189357b056e9be4f','2023-06-02 10:13:00',NULL);

