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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$7uSWQe4EYdzLVkRfXJHHu7d91EvhzrbfS.4pfJYqj54woTJsbdFk9','admin','ak_9274b1a80a8b7dba','2023-02-27 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$XpXZkMnLskPLw7dle/kC6JQagux9FRL.dTdBBYBugAmOx0H1wJa0d','user','ak_33f43a306fb522d2','2023-01-01 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$mPXZB2U2JsPg.jiE0AdgGngmFaYgAocR/MeZ8lVXBU0kUo5yrzN.j','user','ak_2448c1cf0eed217f','2023-10-22 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$0uCas.cd.Feti1UeMKiLbb7uUKYyn61qr6OxOPuiPZQvSuuGfeodw','admin','ak_575ec01333166fd7','2023-08-06 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$GPHOLO15OsEILGzJkGaBs99fpos14KMnkhrydVmCe0S96ab/87MRz','user','ak_b877e0e4eabb6f7a','2023-03-14 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$1pLjnhamHzJYlbz.RWMhIhQa6I66Fj4PQ.72WvrzHNwh0QbP/ShWT','user','ak_8b8e0ac2dceb2759','2023-09-11 10:03:00',NULL);

