-- Host: db-master-4.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=6663;

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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$wsnYkMf71avAMNo9w1q6vT5TYpVRYONrxNLbLSZgDRTo51pwzt.vF','admin','ak_e9b723b892396763','2023-06-10 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$Ka39RXAmtj2e2n0NMIG1yqVZW0r3wH5gGTcfKH.T21avAAPIm0As4','admin','ak_883d25fafe5d3edd','2023-04-08 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$MZH07LoY37JpgwGPfw3oNIFfWrgZY6sLF9MLh1taTRWPIibTX26CY','admin','ak_adcb7abf46d137b8','2023-02-21 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$yGl.R9591Qyhl3CCuiYF0ErwEti6oJRkwbk2uOdjIezeUdIi3E6vU','user','ak_22cd7ca14d708fa1','2023-12-06 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$mQBiAaP6d3HOdVxZjeZ68YB8OZL4svI9EE8wLb9fRFf8NPxBYtMPk','admin','ak_56b2c6bac4493a9a','2023-03-22 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$Qkpbw.mOuq5s6ql9osCXfHFzZzVEoKcBuUmu5hPaykE0DT59h6v.9','user','ak_290f935039fca018','2023-04-11 10:21:00',NULL);

