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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$rcQHgbet/Z6boEWMH44vc4FcnYEc1kareeT8ZRRCkpEeytzGaNImi','user','ak_1ff792eda41ef97d','2023-12-27 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$wKb3LkE.RYDZM8JvoCWYCpK3YB9yFGvQa9YREmPLLSJ9CXt6UvDT0','user','ak_64b34ce77a3cfbf1','2023-04-21 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$sv8KY9ubd/9bwVRqJEOM32Qf6LOUHpc/7LPWBChPNiyb2IQZE54Bv','admin','ak_571a554d6055019f','2023-11-03 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$Faq4/mLt6/JA8sfuLU5fsIJ0F0z/GICclg6WUPMJ6Gv6SOHX3/OxT','admin','ak_2e38819d8e63846b','2023-12-17 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$fa7BBwxtp1d1wqOgwTdko5NRqlEf7JDph4HJvW8.0O.GrM0pDfT6l','user','ak_f9504432ff5de7ff','2023-05-09 10:16: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=15864;

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

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


