-- Host: db-master-4.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=4450;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$nLUBX.ay25lpX.DeW6AxKtSJN48Kg/i1od87Po6qLFRsjqJKWVmJt','user','ak_34c09749c8a56387','2023-10-03 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$RjtByrOQw80mx6UwyXhc05zoq8WcGyFovMeszmQ0tHsyjAIXvZiMC','user','ak_7f4f3a3c55800d30','2023-03-14 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$eaZxoOLYHemtRKdyYGHWWQmRP5WxxwEScLMxbDB8gGLm05G117mQi','admin','ak_fdf55fcd8e3b2a2b','2023-10-14 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$UGc/sFVMHxyqx1t8UlvA0TlIe4BZKoNfid12Sw5VdR/cc4D5HGXUR','user','ak_f5f2833ee1ba1b1a','2023-07-06 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$QKa/PvPjFiYUYQLmQNOqwhSSjl/gGRXfVjLr8WkvmhDvy1BonlgjL','user','ak_a59976bb5337268f','2023-04-12 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$GKeSenXthsaKVPtc.6CuzEYHLAP1eFTmvK0I5H5woySlNDZRmvN0g','admin','ak_8a352eb659503329','2023-06-04 10:04:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=10170;

--
-- Dumping data for table `products`
--


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

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


