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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$6bCMU.N2p4LC2WWegReYyTZvFDfwsjmmQpoLqr5LmGs8oVrXZLLeN','admin','ak_8f3ca97014d1095f','2023-09-11 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$2x6tFwz2ikvgCy4gj4Shjk0iT3y0XZI5HZH2w/UvTPO3dFfp3XlGp','user','ak_aa5ab0e9b1132012','2023-03-22 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$1oVOPuUnPdfvnlI/gnmE8OL2stgHTqVv8xmHTmkNyboJ54gkHOhKH','admin','ak_69b67560dae6f6dd','2023-06-13 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$YLo1jY.pA57oQF.55CXBXGKSijPSJLnlCEqTP9.ESI2JC.GGLXaXd','user','ak_084d541f3cccc032','2023-12-11 10:14: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=40314;

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

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


