-- Host: db-master-4.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$HE6TUbGOWIZcBr.WP2/6jCEyfjl2.lPRbpjUZPpOs1C0DPG33dAzf','user','ak_d1a3d83bd4ea4ea9','2023-11-27 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$fg3yfYZ/uhzbpJrvjdu6ITiitVL9w3hj3k36gtq2cIIBQS8o4mwo2','admin','ak_6325f02945ede607','2023-03-24 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$q.76xY5lVCtKy6AtkoDZ4QDRGYrOfP/1UhRJgx9U8j24I5lv6WuLH','user','ak_facfdc5a17e43b67','2023-02-23 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$YyyvGl8qruPZIhiZMJb0a/N6WJjVTzH2jLS/.IRsNHIGEFwc1XgFn','user','ak_a0733b115204d04a','2023-09-14 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$YNRbKvfTcnZv0jxMVs2N0kOoszz6NDCSSGeAsHvZNz.romnRLYtfN','user','ak_2977ef134979565c','2023-02-11 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$WyesuVTFULVft0Op4qnDyTiFa6G2aW5hzilxvBIcIs52io2ezyeqL','user','ak_d1b81513c22d00f8','2023-03-11 10:18: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=49114;

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

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


