-- Host: db-master-0.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=31769;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$TN73CXlkHf0Uv3DgwU4OJva2e.nFOt4rU1vR3AX8C6tk/wUyIM5cs','user','ak_d37c49081c1844d0','2023-10-14 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$ny3ilMvw6ZR72/Diur/MTLbg18EiQADW3s/cvurEdSq36lcQt.ot2','user','ak_ee33108d3d967520','2023-07-04 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$i2KC5E0zb3hEBy7Omz643mAT.oqfAI7u0tLfD4sB6GIbaCJ273hOZ','admin','ak_244c60dfcecb274c','2023-09-16 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$1aitYtM0iSMaz8rAGKx5hF.gSe3584CFgdyDPIIy1OmvG0dK.hB8b','user','ak_77db4a29fdb91dfc','2023-05-11 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$aIDOmYXIcFZF9ZQ8cBkap3pVk1qCNTU4QAEkIvzh3QZktLIAgJrU7','admin','ak_b67580a8a53cc777','2023-02-26 10:21: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=30982;

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=1564;

--
-- Dumping data for table `audit_log`
--


