-- Host: db-master-6.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=47465;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$3cSpfk1D.E1TA62pmJKpr8oty5Iot.n3.799kOymyp0rF96aBnlye','admin','ak_ec982cc9b40da786','2023-07-14 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$PdPjqvdOrKLx1MJxjWuHtHQyobGjjt7/UtJ8TtFzdjQrvdDq6nsJJ','user','ak_8b7a28ec55cdfca2','2023-08-25 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$IH0QscVmmy.gHjdsauYfmn4Jgmdu3yOYY6Gu9IXcWDUb5VD8KTQbu','user','ak_e5ea543e5c13ccc9','2023-03-19 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$jz0qsGZt1UyGKFsB1ID84LVxDa6f6bmsx1Nw1cjdL4JxwxA2XRdtG','admin','ak_77b568c05d9af758','2023-12-27 10:01: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=8144;

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

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


