-- Host: db-master-8.internal    Database: webapp_db


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$6KBpulf2482WPL8O.P/fG3CWptPovegneq2kd7WC9fw.f3jB0I5.W','user','ak_e4078f55a677d592','2023-12-13 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$7YWkXrbkx73hD/adNwDKH0Mi0Wnh8cfgec6M6nt4Tu71DDB0SJUZV','admin','ak_db3c0341343d5bab','2023-05-09 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$mKxidXYlm2P55EJi2YZ4yWA3kvK1tNir76uOGcEuXsDsCKRq5dNXA','user','ak_d12a215ddc492a72','2023-10-08 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$FrZpEoPkFyyr6nvG88b.bUqfNCIjJtBAgE72E0d4VugdW.d55EHdA','user','ak_4723e05f0ec30c2d','2023-04-03 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$tgfSrRwfqj1quK/Cq2QnOL9Ak1qDmHeHG.lGr2RGihscdpo2oXbKB','admin','ak_1087e01d1bd09d45','2023-06-22 10:07: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=41073;

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


