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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$R76QFrVoF8eJA3yeU8F7WhQjFeftczW/9wsGex8LTFRaimB7X8z0R','user','ak_8439777629084e2c','2023-09-07 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$CbJ4WVq.Iv4NnX7IrX..QZZRybAx1D0vEX6tqN4YCMdC8LcNFWH3H','user','ak_d4bad8b181d941e3','2023-11-24 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$26ZAZZvOJLNPQSwe7OzCtPIPpAzblt7/eG3MJnVH/OXM1/cHH2w3m','user','ak_293b20ca89774cbf','2023-01-23 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$MEMVNoIU4xSpWoMq5r9/999e60K6/xjvYd1cE2SW3DE5tri80pDZq','admin','ak_295d47614794c8da','2023-06-03 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$Zkkv.oe0BXbg8EeEGxwYPQbNzGitsQCstq9mIYeYtV6emMAa6hes8','user','ak_c9bc48e6db6a7605','2023-02-12 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$FE.pZSDC2CgqtpNfLiRqeKwMIi6Z4oyAokJU7Vij5uRUoiyxP0CCw','admin','ak_6d9fd2f221132203','2023-08-20 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=3755;

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


