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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$1PxPQe3LHrYce30bS2hmayC0KDdpyLjD0vJqys2UOd8rsFO4xGK8P','admin','ak_43334b323c2aa8c7','2023-04-08 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$gi/aVgjiUsZq52cGoHQasl5JPNMAXJpXe00wPWTUiD2noK95Opx6/','admin','ak_7ca15dbbd2bae2c0','2023-05-22 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$sab4bX4pYtBJlEpDMHMWvU4sbEtHRwcVmmeZhxWcB7UyY5wfEDTTT','admin','ak_d1873529b1bd9669','2023-11-11 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$If.Pa6/4UsokyAzl7EWomd.fx7K8W1I4yc.7rPuEOS5DxyNHdezNc','user','ak_b24d5b2810363666','2023-06-12 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$rFdYiLLmZ8BBuawLRn.OyN0zCVE2SKCOjvr9789xvjM/SGhL7Scmq','user','ak_cf5c588907b3907a','2023-03-19 10:17: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=26745;

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


