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


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$mPyZ08n0b0fXWM/paGFqJCTYdNByAFQHI09stbu/Amx09h/ZYWyDl','admin','ak_0945514d0026b1f4','2023-03-20 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$zBz7UrESI.tyg0hHphtUkwlrYje6A.1tqKzvsn6ZKsLV6Exmjq6Lv','admin','ak_37f89a295e5c08be','2023-04-05 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$mQ5Q5qzp4nWrlK45xpjUn6yb48V9WIyWTsi8bMNHlvvvDoB6bNPs0','admin','ak_049fa441ad07b223','2023-10-10 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$MC7zBYl0XfVg.P6FLeKtfOhX7zzdL44PAqqv9r7evBgPD0pqkkPUN','user','ak_efbc8e7678fea439','2023-10-10 10:21:00',NULL);

