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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$F5ZFdTEcQYaTCf5rtKLjPiwFtTSLcnKJdUL9wNDRXLB9IlXMaWZ8f','user','ak_93de26db20e54a2b','2023-07-14 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$sdUc9lp7bOGuhp/gQ7.Hxl/ra8D.04gqhnVEHMhwz/vVySsfnDxiX','admin','ak_d5d879e9fb323bc9','2023-02-25 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$fbfpDDzo.q1k7OaK7PslbaQkTJxwPeNredt7YSReUc.KQxEZyG8zT','user','ak_68c25531f27640b5','2023-05-23 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$9ClOVirDXpIDR7k./qwMbjAoWBR0RnpK2tMdBNKCB/bq/kEroJ2zj','user','ak_679f5ad480b3fbb6','2023-12-07 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$xYJ8E.IEO2eWyQexxv/kpojLj7eIqOJhiSIJ52EZ8l/ePBENaHhS4','user','ak_46406a4f3a8d11d6','2023-02-02 10:15: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=27141;

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


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

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


