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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$qIztAy.mHaTxanU1NRNxSfCTAJpv/rL7MzDbl2kNuYCOGA1RzesDu','admin','ak_d40f256b1b5d6ea8','2023-03-14 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$Uv7elJjHKwS025dkqhhJOCxRvpDaioRZoHCdKzu4ZgL//qXL06/Xu','user','ak_830701a7e54e43e6','2023-10-28 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$VTNkTdKDuY0vnaM5SzXUQcpZkzVfIPPWX4vQ9ywpFv2udK7Tf7nEi','user','ak_f15d334701b250e9','2023-08-07 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$uBvQT/uLV6Ron6CZe5Q7GAMfmE6tspeXAs866dr.bCICrxNAZN7dE','admin','ak_b51eb24d835cc26e','2023-01-16 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$yblsf7slhU7iFIlSgPPc2cBc3dK8xAxJWMZLtQXTgsTiojAUza6b5','user','ak_780e1ebcc8fe1fdc','2023-03-19 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$DOYii6Bg4X66D5EC2pWeSoBM7QLLsOhYQbI2qecHwSyYvLkJlSkWd','user','ak_56d20bb30ed00ad0','2023-02-05 10:23:00',NULL);

