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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$JHoOlzzk0A3EPjateGJ4fnw3iXr.cRlezUPMb0GY2Y7AGGTLIEbfV','user','ak_082d9023b685fc93','2023-12-19 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$pJhRPxKgufON7Gdrd3bEyO3C1.2mNkhuTTn707c8W0ybpjNf3ITQG','admin','ak_5455b906d484a812','2023-08-09 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$F8RTceA64em2TkxseoggoC2HMfkAZzMPGb5XiIMxci456GBNwtLg3','user','ak_76a3c5c39b6a2412','2023-10-25 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$zWFul2iKvPeAxdGL3r45QW5ov99qGufB6DZ9dUgUUmSIAb3oRVpq4','user','ak_2348fc346a2be8f0','2023-06-26 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$UcIMEBt6EWESATnys09/om99RIyIjrcv6HZHE4TjiIbj2YMaNJo16','user','ak_9ccc50e8c93c0dc6','2023-07-27 10:02:00',NULL);

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

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

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


