-- Host: db-master-0.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=3357;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$XTBKb6mhz/nDx4/G1dX89001JcSwhu4B2D8Bq11t6r9ZJIjz0vXXH','user','ak_a4969b2401c7fd3a','2023-03-04 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$WN9qd2UsUGFo8vAxRdjaGareg107uPg.K7v5PyAS7XuLGuWnwINFb','user','ak_f5de7b785661e2f3','2023-06-07 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$Us8ikmExw0Qp/iKoXqbKjQDs5fIWJ92def.r/oyJebgd8k87dc7m.','user','ak_6cb1b67c7943aa6b','2023-02-18 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$bQK6tDLvode4Zem2w4WT/XRzHSSnlD5W9F9tLAueRl1NhRiCAjI6G','admin','ak_f82105b0fb126fea','2023-12-25 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$zevoFnMCGiisO4RxEWTFoMBAtcHz9EdajV3M6kI6Fwp2y8e0St4sN','user','ak_2db675270fd1d349','2023-07-26 10:06: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=30334;

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

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


