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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$lmO5L0wdh05Tt4Egmnh2axBbzjFBGvzCnyDz4DVJoZdzxGmGSk4tL','user','ak_81dc4bc75b75de96','2023-06-18 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$med8OZVSnqaB7gzERE.lstcREp/dV4vM9p68K171g12GpLwhxjo1t','admin','ak_e8b7d94c570b2f61','2023-01-23 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$UUbfBlOKrdMqEiGQjozc9VJu0VplJGLgX.s5GoGA4zQlWfV5cMl1d','user','ak_f9d928b1e47518c8','2023-02-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$j69PKTjCUDsm4XQnd234AVA/lQWjZmKpOut.TQyOmCNy6X3V7qKGH','user','ak_bb1a7a702ea4de9a','2023-09-07 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$0/mTAs//jyaeShwGdYWFfbXfbWplWaUiIhMfw39sxYyX26ibhaMvE','admin','ak_43966f5829808dcf','2023-12-28 10:13: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=43949;

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


