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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$DuGeqhXqGMEttiof2DGOfKo2ITHfntIpNxzDZL8IOfx5vqWGVECx9','admin','ak_f09d5e3892276391','2023-10-07 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$XoK8dSqLYKn3YNZzWjhwJdC/D.wIfeRl7EXLNegqr2LvQQBIvgEFP','user','ak_de8c3636c12c73e0','2023-12-05 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$avLj42t8UP3kj.m5SPQ4487kxqSZcamlBamHCDpYV0fFM5VQLhsLP','user','ak_88ae98fe6c2cb619','2023-03-26 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$dkrnbJKz4QAL6n/cY9WyfFYfsPJIKUX7qXZWm4V8ZOVnzhGfcfIOz','user','ak_71070bd157844b58','2023-03-16 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$Xug.vFw6HC5DoWPoYsGyi1A.LEhFjkll5UFHYL5t/KuSe48xyyGQl','user','ak_edf7915b41d8143b','2023-04-23 10:03: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=49898;

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


