-- Host: db-master-6.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=12648;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$s3RDK1tE9aDtV8PxEOIidlPFm2l7n6V3yI2JHaKFNt4PmsMFPdvhF','user','ak_a4969adae7e34271','2023-09-28 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$nXPJgulstAPONy6Q9sv7iRPouzQsJ/Ts5TPdq5UX5wznHN6zrShvp','user','ak_453b56569eae3fdb','2023-08-03 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$fpfujUxqmYi2Ul8AtWWtISpoK0NxHGREjyRSjLIG/wDyiM63Fu0CQ','user','ak_5ab47b9c23bf2095','2023-01-15 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$OTQhC6CxPTIDnsVW1bX6MRbUqLvzUzDTJ7u3hDQIL35nHvN9chPfl','user','ak_6caca2efc3a40912','2023-02-22 10:08: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=44709;

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

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


