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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$gAq8iRm02fZ/CD2nVwTJLV1Vj8gqm9/nW92MJVIeoJmlan0sHlzC6','admin','ak_ac00f8341e1d0bf8','2023-05-26 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$4uWkOfnDBq/Rv0YtrfTi5WEWlmUjyXXhTE.cOhYidO1JxacQhLCOB','user','ak_19f432c37c7ccde6','2023-05-22 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$5EONlEugBxsq2nln6aHUK82DYyrymZBJG/LV2LG6Xg4vKjorV3I2e','user','ak_6684173d04c1ae78','2023-09-25 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$Te/HscV2H3LxxmM8HPA5skiULxasjgqrR0aidyTx.HIPIHILfxWhM','user','ak_0cc5a2bf1961c562','2023-12-28 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$GOX54XdisIoaOkBOLLI1DKD/oUEK5OOi5jJEk1czZMGoew6o/EcD6','user','ak_9e0eec360e74f931','2023-07-23 10:17:00',NULL);

