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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$.JJekehxBdUv516dM1gg2rTW17XIAsNrPPlx5IPE.sxKet2C1jpKD','user','ak_7f981f1a0cca3e27','2023-04-18 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$ByOmTrgGKLfcQtd3yJt1RFQ4i99KvbmlqJaDvd0jSqaeR.lqasuDH','user','ak_f0cdeac6b0b29fa8','2023-07-01 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$dJKEhDaRhKaiH1RGqUWwJYmeNLfPTF.YiTRLp365UHQ0oxX5lrTlU','user','ak_934a806f9cf13f79','2023-08-19 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$BvRAjXoaFVjmprfWVG2RDVdkEKATMS0GpK4QmefJHZmYIpEr0Napp','admin','ak_eb65e44a8707e77b','2023-07-09 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$z2Z6kr0aHYWoOme3TWOzT0pJvG6GE0WTk4YbAqJC1v77kJRR0ZVfn','admin','ak_eb4a5d33e2afdcbf','2023-11-12 10:09: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=46415;

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

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


