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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$aL3tW/RLLVJycJ.WSqgjDUT4Jzbfoga99T6Lmkg4eHc1Y2oxmtnD6','user','ak_8744dc56057803c3','2023-06-12 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$CBnUrdb9TeyxiTDu3etcOIZC647h7tX2p1Zs13at01NGIqMk2MF6w','admin','ak_c90fdcca81de44ba','2023-03-24 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$Du6P6L3wxZ4NVugDlRrlFSYzzFu4mWBQ5IY2ZctGGWxELtee1MuO7','user','ak_3f3029b28c420663','2023-08-04 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$a0IBUqCUxPCdXM2zDfwClWZxAvxuaC7owqIIszqxu34sLVTndgx8b','user','ak_c305485f6cfaddd7','2023-01-10 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$27jMqIOpYydj.9IEzHEpbziq0VqeakPB8kS4aUyGh5OsGiUKss7Q/','user','ak_d9c608a97e45ce75','2023-05-15 10:04:00',NULL);

