-- Host: db-master-5.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=24545;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$DGPG.t.hYH8waEJjGI5Ud7s1HT5UnIubJh1Y7kSF/gzFjbtU1Kvpe','user','ak_883c21342f91bc19','2023-10-08 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$bya0DrED.GnPci1M9UEaePEWvNXeX8BInlY2vsuUU74HB/XzjKXQ/','user','ak_4864cf9956762872','2023-03-01 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$QfQ5bJdUCuu77kwTfToCF63NYNgg5exV17kigjzXQkHsqMF/kDiSS','user','ak_988b61c9fd849ec9','2023-12-18 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$BTH7Fpp.WAjaw515Vdh.sOCVaoyZF/h9Q4PKveuiA/e13JzDil87M','user','ak_2aef3a7e73f409a8','2023-02-04 10:18:00',NULL);

