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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$Bn025/SvPOAHTwT0MrneHqG6DKAZj4xnNBjqmA/fGa.VhUjPE1NjW','user','ak_1770ce4b8485c291','2023-11-20 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$n1Fw5.FM9oZwZpT9wpF/DvesHWOPa8oyNuInNamDVKDnU3FsowCL4','user','ak_de69e76d5c5b127b','2023-09-13 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$i3iCuIefr8WoAMiY2RTUXz.rvViKQNzFNvl0yqNZQDo1SrcQhsEDw','user','ak_6db42766871f9b19','2023-11-12 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$ySAdBAOlLuO8MwvjVbz03pKipMVq1QpkM4HsUu/iHIvs64ZQ6qtmx','user','ak_a0de213e1f4c8cf5','2023-12-10 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$p.FSzfKjTq.rL66AWuNlmuoxyCE8k1M9NrGtO8zU10KjaBSDladHP','user','ak_952ce8e419cc0a8c','2023-04-04 10:00:00',NULL);

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

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

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


