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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$GiEOJEfy1hv/osd7BrVrn85rx8wGyv1XnxDaQooqYnPKcmF8jOIRQ','user','ak_ab9bdb817edb2218','2023-01-02 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$9KH8wxacmLenhGLho5jSSwb/c78uLzQPatmUOAmNPSsxrYnX9qP1g','user','ak_5f7ec05cc224b902','2023-12-12 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$TdsDU5yTgvPNA8rzINun9Wcs4Fpnu.Uehp2yhuc7V9fGS2un2hOeL','user','ak_4a619de0203cd4ec','2023-09-16 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$GjLFHhO5fp99iim/PqgsTGwGhydlDikrV6o6dAD1p8yV7C1XtjA3u','user','ak_970418e07b8c4d97','2023-03-22 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$FBiuUhSEKaFcqMe/tzsdXOY0E8CVRG/HynFEZt/8N8Zwo4n2EUUaL','user','ak_20ac1e27eb8673dd','2023-04-04 10:11: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=33538;

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


