-- Host: db-master-1.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=35997;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$jro1Gm3YBCtK8aY1blcIPVN9REouJ5E5Ar8XaloZCsbQ5L9VuGA7U','user','ak_2fd05dfff8401346','2023-06-15 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$McaY/zugD9gua/wm85rnCrzTZc7Fgq29HwZ3OdvXIZtnrIGI4AGpN','admin','ak_b089e43be359d4cd','2023-10-21 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$furjkjDVTXWAAXlYjiwsdQ/EtKhp9j7I9.Fd7higc//c9NR3eQjrh','user','ak_3f8dcc7855be9ba3','2023-12-07 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$NarGLoyHZRNoA8F5IX5cyXKHNHqzBan3IVKZlV9p/y1OlXwoK6y1Y','user','ak_2c61233fd2893c2f','2023-05-13 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$kepVXsJUNoDlz2GqN/RDD9nrUiKwZkoqBNoockpDT45EVXy.xNsHn','user','ak_b89606e65182d18b','2023-03-23 10:18:00',NULL);

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

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


