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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$9rdYaHaLHBsBGZFuy9w7.ygfwtR2FNE/GOlYJCyGnxChU6SlvCOe0','admin','ak_8c49120114fb105f','2023-10-20 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$DX3SNOv3MvBd9Aqhg2e39LW6eZyTo3GIQw/p9Y4hEnX.xg4.xtzXp','admin','ak_5208090b4f112a78','2023-09-19 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$YViRJr32/K/Mh86XfsrSfdLf1YFUX8QyVRsZ8OrDJeVcHnGSrZryF','user','ak_592e0342737f47f4','2023-07-27 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$0CW2F2VWyYa89DUTNgSHnedjl5s0OUPUNsHifSm/N9yhVpVSY/KZh','admin','ak_3ae41b6314890886','2023-12-12 10:15: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=7341;

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


