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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$Fe1OFvcqEYI2tqkAUgM9A5RiZ8XNFCoHTu9ccccimrl46zlz6OF..','user','ak_da272b460f0d25e5','2023-10-06 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$rs3.FtAtgruavY6x8iNZbm3Y5DqdUFYmFYYDTS6dhk0zkG14PbWU/','user','ak_bf3af6c6d2536d9f','2023-03-03 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$7AoveNJ6rVcTNAXRZ2xj8UpSYjBU09XYI1fbau4sMfWbxDXKrDEcS','user','ak_6b8ab6b8045fbc35','2023-06-23 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$pCF5juoDrKNYW5G6oQLr0uMQB6QCnpt89iXIRjghtsoA/I62GuWRr','user','ak_e224292ac8cf294f','2023-03-10 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$8EG8VTYhTTKPAm1Kll.j6hJOZJVB1S78eCKkJaiDtzHsIMTdgCYd6','user','ak_4a5e61a7756d988a','2023-03-22 10:19: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=4403;

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


