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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$j1q/uxm9y50Ngr3hgdhHMZNnj5BjxPY9k5hI2L752O8AzhHz.2QvR','user','ak_fcdc05609e9c32ef','2023-11-10 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$rTzw8oETenJXpHDb8o.OpO734cu4n/Z75/a12CBC1iUeONToVyEVk','user','ak_e2410221898e8781','2023-01-23 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$DP6OchFt/WCtKiHTEGam8WotZ5bhK3IGvHwA.4kBHbcU4K1C0efIg','admin','ak_18187106ceed3da3','2023-06-15 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$7NGfxAk1IG82avk.cgWXOyoBcOdRuf1ebf1p1sWTjwTlAGrzZ2055','user','ak_fefb3365d1614563','2023-07-13 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$GLhQSU0hAbFndZsVByyF0P77RTv6FWu7Nx8pLthKfaJlyarnPJO7N','user','ak_4ece2723e7ebe8b2','2023-05-03 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$zH3vRDtCYuQZeXhmDD6x/YOqazmIt4QLjnvoFhelOF4ZcIDY1WcYC','user','ak_521926919ff2fb07','2023-12-08 10:00:00',NULL);

