-- Host: db-master-3.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$uzo9Ox./UJxq.Ogua./l6mf.WFAGUuiDy/0jqJu71vJ0hP/PRVEnw','admin','ak_af5c4c33df34634e','2023-10-16 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$nV0gLzXce7oYwQC2cfTsqae4h2WR7OZ4EMEsSmhF1Y9TgKLvMxBSC','admin','ak_489eec6b400f133c','2023-08-05 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$5KsLtQHhasE.ohmgSKFz1xtns6e9qT1r7bUCAt/aCfbYyyZTn8TXo','admin','ak_4c2dff2080503491','2023-03-14 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$u7KxS/y.q/ViASHM1Klg42tbf0cCzXo04spegGbHWP1FLSOoucycz','user','ak_578fa8c52b7d8357','2023-05-03 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$yCCI2csMh.xVFZq7qr/.dFYWTO.otKyGe..sPM9bG7KzKhWe1DCGH','admin','ak_a1fa4ea41533f140','2023-07-11 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$A1u3XOjycWZopFIFTpYdwpO/q5UhVaTi9.HV4MwuolGGW/Tj6Q6BV','user','ak_0f8b2f2cb185613f','2023-11-19 10:14: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=33362;

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

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


