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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$ObYs8UYeQZGfHUj/7jSiRs1YPEGZiNRq.hGwebEhcDpTcyMgxNIj8','admin','ak_655d08a430c5038a','2023-03-02 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$7eTafG3g3RLwT8Ev7jvlR9QiRBHoLUpBOrs.YJkBL9g8Z8LTXKy.C','admin','ak_c97d79ccc9e26dc7','2023-06-13 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$OF6SV2DnuvY3MFlQdq/.vBYjlLsSFjQuiudn5nwQHgbyerbzH9XyO','admin','ak_fd8b5dc0a32c81f9','2023-02-21 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Xi58SI4F4Z4vJgHq4RRUsrinazMfc6NUIFEJ8sFhuvLXmb2ZTAoo4','user','ak_5dc14a614c05f520','2023-08-05 10:00:00',NULL);

