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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$p/fhh7wSJ2eTc8TIM5Pi.1rFY7P7VjBWzMu9JG.H3NSn/7YJgD8ca','user','ak_a999ef61f88c8d33','2023-10-11 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$eRP013gfUeKsA4p8T2RnGOlDDciVdcWVemf8uqUf6ruHrcokmEuc4','user','ak_a28cfab68207a35b','2023-12-01 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$hgYpbc8r1pW93hi0pQNfwHceUg5vDC94qLF.EV836yWmeY6jo1jfS','user','ak_b6d9e040fb4de5f2','2023-08-21 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$BFQ7AyovH8b.Qu2l0Er9Umpzu9/3md0WPqAFMKy5NUeskzNlGy0w5','user','ak_b420d59cd55c4862','2023-02-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$r3s8vCH.RYm0GwDFdLyZbbg9i1fMzvPZF0OAfNVM.dFK8aFFos2Px','user','ak_21929abb7a24dce2','2023-10-10 10:08: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=33164;

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

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


