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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$UHc4VqGSFou9dZ5VDK3hBqIJPqK4U9ezLXZLUHFhqhNirQGloBaWs','user','ak_c272d1ab5763d981','2023-04-22 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$SW69x.Ny0LHBUKb40vE8I1.O83AURl1rM770UcRPLqgGvx3ccFwq1','user','ak_9842158cca07cf7b','2023-01-03 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$4RseaMkd1tytlKIyIuzEO2M9i4Wc8glocqjCyZYSW5l20NPR5ushO','user','ak_5b788856fb52cf9a','2023-10-22 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$zdzBwIKfy1OoiA//MZgYPR0c63cY78AqdGkGbo05gnVTcyBDAQw/O','admin','ak_dae56368b8812130','2023-04-24 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$rOL9g5UxwSxM1ltaeCGpdiTablobaCdMF5zVOS/7JrShvjP5r63oB','user','ak_3ad50a242b45dc03','2023-09-13 10:17: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=49334;

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


