-- Host: db-master-1.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=20348;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$0T2AYmtKZ9kmovYtS6Vma/HT18WnEfGFmdMOre1RsPe66.9Y7F8pz','admin','ak_e98cde3edb0a16e1','2023-11-22 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$NEHayyn70xGRGDOUn3cerkocHr5zfYfn3NmlpXcTlbOeQHoF0yW81','user','ak_dc85418b7be2333e','2023-12-21 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$ySzGvK6TuddLL67tC9xR62kGP53NAgRVAOI3L5a/YaEh/h0pMHw8b','user','ak_5a8b7ce39194f64c','2023-11-11 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$GDEfU8epN4bLxEmf5akav2klIm2J9CINphcmxlg3YMMWEz0bHd0k2','admin','ak_078658bdaed83eff','2023-09-02 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$UK4MxM6H1ZamUTXO3nYGGEaVxZXbxywFDrgQFsm0vexZlKmuCfkTn','admin','ak_9252a72f27235cc9','2023-05-19 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$gu8lD9wK19WAqSp60SjVAGL4BlL5J9RQw1xalREoWrX4SH8wn5MGI','user','ak_befb4427101f3a16','2023-05-02 10:01: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=41934;

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

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


