-- Host: db-master-2.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$8iLSq0adn7zpmdnhsopcHSXvzLJiSCB9j7IF4UOWp8BaUrJduDZ5z','user','ak_7c6bb9c864815d16','2023-11-26 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$sUpOF.a/YP17NsIaODtdZVb1dWb3rhhgZmAYKuc.JvNwLZYcuNQTu','user','ak_2979c11565358daf','2023-05-10 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$qe/z4gCk8yxdEABTs7Pz7YjPbhAEK4lRZro4ps0H6wAUsAPOpJ1f4','admin','ak_a02e17faf50eea6d','2023-01-06 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$XRl7TnSdJhZXEIESkCme2QmlZxRheNojAnZ.8cwKwrCa3g2mxQrxY','admin','ak_3576209a95ff7753','2023-09-05 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$S18o5OVJyu7crGOUzlBqtZHd6OCiGdlnMiXXEPALUugpDOAJ20SW1','user','ak_2c3cfce543db0876','2023-10-17 10:02: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=24352;

--
-- Dumping data for table `products`
--


