-- Host: db-master-6.internal    Database: customers


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$7hH1m3Wv7HZjkNqvpWnytJBieOV/jywv6ZrOh1imUs5MqJf6PSXRW','user','ak_65237711962a92d8','2023-08-10 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$DTWC0y85LKLy5k4TE2bCUX/nif.ysMPnpammyK1swsOUMRxHXtyzE','admin','ak_170eb761ded21977','2023-08-02 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$HX0HF/NqvyQNKcmf9v9R6pMPPDBdWDw5NESgLgsodw8J2BqwsGxm8','user','ak_c63daff1ec62c2ad','2023-01-12 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$kfrQ3USMVLYkhPfmJz6/Yl5C7M0hmBgWN3rYs13Ar2B7WXp1KMiQR','user','ak_e59b22a1deedb9ae','2023-02-02 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$dhV7wRItm46lq1fjjuLnf7SLLAodsjWliYGbGcBBLMtjOn0iSNrdS','user','ak_85704d0ffdd90897','2023-07-21 10:17:00',NULL);

