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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$gI6PmYZ4mztJ.HHz/e/RZ/UaE5kD1zQipkUy7M.s3Fhkkp7Aj1eMO','admin','ak_919fa818ef96b9e1','2023-02-10 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Zn5fhJLPJbf.IIqc2WWGxqQWITuMFRXGxj2DcmPGyshiOGsz2OTJN','user','ak_fecbafe641cd8588','2023-05-23 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$M/HJaWQrR3lbCq4D3mbR5rZ9LaB2CJUftilJpfgK6/oMb5/rlHmkf','user','ak_d5b9376bf4497ee2','2023-02-02 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$zNrkcNLyz8GvceGjZw.ngOGVC52U6oZ4SknagfWTvcK6skweb5Ewc','user','ak_0e4232f6c8faa82c','2023-07-21 10:01: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=10244;

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


