-- Host: db-master-7.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$z9XUW7hZMOCQW2kSxlscZXKRyeaQ5/VfMPQkgfG29oVH7v/MRgqSy','user','ak_9ae699f28f81f04d','2023-11-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$04.otyoV.NtnfueAh.DhotmHIqwcFG5BYHHCiOaR/Zw84.udbpE88','admin','ak_c9358f9002c66327','2023-08-05 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$gtU0ccjQVZyrc7ywEnjS7O7YpsSBj.qZrfd0MjGTeFKn3gZZI3DLa','user','ak_6b6a5055c349cba8','2023-08-04 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$c5.z6U.4C6P1xZ70L2gWjtC/XIs2qJMpHuLL0tcsiIqTOkJYG0mCE','user','ak_a7135c7ab1dc0d3c','2023-02-12 10:00: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=38812;

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


