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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$6FKPGJKrsO2YFBj5VAKk7027k2VJLfwA4gonA7tHJJ3ebODT8lvkg','user','ak_1c07da6d85ec0f74','2023-01-14 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$9fYs0wuucjIu6FH432QocP463xcb/nX8mpvaIThHoLXGGRNCGRCgv','user','ak_53c009cbec022889','2023-05-21 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$lZXef0GidLSLzTiklO8oePeRMcHV8Yjh6mPzbvWQPEKdnPZmzk2u2','user','ak_b719e24e4d5b2651','2023-06-26 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$2Fl.fGkyh42/Z4CG2yIvpouabBcG6RHFv5iBYw4QcDkmO5CcSkkvd','user','ak_d3e39d4c8ec0d97c','2023-03-01 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$v2L//LGoFs5Cj8joG5zvDWxepWdibbBEYaPPT4ncjIip1zu03SP9l','admin','ak_83e6a90e410de98c','2023-11-06 10:19: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=10640;

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

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


