-- Host: db-master-9.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$zhdxXVOGDZBnPBfn1irLGHknMGAY0uJ7O/cMQ42Piv17sK3Z7BX7w','user','ak_266a597f7bb1ef99','2023-05-18 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$LbEvId9oaHFBtoPNEwV.ku7NvHBjaN293TmPEtZZhmnZmIp2dvQ5D','admin','ak_dc34fbc8419f3fc7','2023-07-04 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$fviB0FdS7N5hKNI/xpmdf1rFOow/2oGXzq9xP8NYRf4IifsApSmQI','user','ak_d6e58397cf4a30d4','2023-03-16 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$ljiUNgNe1nM5vv4EUEnRPcwTTk..SrOhTj25/hFiLz4JNtl5koA5J','user','ak_b301d8d55079e7b1','2023-08-25 10:07: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=2686;

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


