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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$NlvqRyrhMakkZQRctNpRF5J2hmu6ALq6BqmZojVDAD1oM/smlOZs9','user','ak_9a175caaf0314a0b','2023-09-24 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$8ILd0ec8mYil4UZLb8kkI/iz7UaS1p.fS4nznLzxxwEoNZjbNVaP0','admin','ak_2459feefb81dabd4','2023-02-09 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$pLlIQsJTMB8WKiMqXopYVdDfi9Bm5ojGQaLOl0NM/rokDx4D6cYjx','user','ak_7401dcad1459cf92','2023-04-16 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$jiXD5kAHvghp/MPTfIZmyO34Sthsemer.nTaYDs4LUCAM9VQTzGRM','user','ak_22fa7e0d7a5b76fb','2023-09-23 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$8trSl62sdIciXRxD5tklDH6uUfzOKhBjavSQTG9wr6Ayg13pSEJx2','admin','ak_1bfa68dbb51266ea','2023-01-23 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=13700;

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

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


