-- Host: db-master-2.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=23668;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$BGlnhFJa.B0Fa8ew/WJFD/.fuVFHNAonaLC2MOLChV2wZ/.4/YSkA','user','ak_1c8157398d537c77','2023-02-05 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$fgXE9bQD337ZbYi4SJ59BJtWlCzmt59HFuRipooC0ao6Xk9wWWDop','admin','ak_d384272731a8dc17','2023-07-25 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$MMWCBORX2IFZ06XGpRFlvafpcbalmtGWRGFxlO6y3MGkdBYywYBCk','admin','ak_31f4bd76f7a96945','2023-09-10 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$zO5RXxVDS2K6F/mK3CO9Ypz.EXu.mykuhzmHAS32hZJmQqPmgL.2n','user','ak_93576a60ab2b17b4','2023-11-21 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$Xs7OMbHkxWOE.oD.UhH4hT7oKy3IejhzUG/KJ/2cWrWzIg8y2RsvZ','user','ak_cb976a3c9e55fffb','2023-04-02 10:23:00',NULL);

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

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

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


