-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Sep 01, 2023 at 01:39 AM
-- Server version: 5.7.43
-- PHP Version: 8.1.16

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `demoknestlms_multi`
--

-- --------------------------------------------------------

--
-- Table structure for table `trax_account_agreement_user`
--

CREATE TABLE `trax_account_agreement_user` (
  `agreement_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `trax_account_agreement_user`
--
ALTER TABLE `trax_account_agreement_user`
  ADD PRIMARY KEY (`agreement_id`,`user_id`),
  ADD KEY `trax_account_agreement_user_user_id_foreign` (`user_id`);

--
-- Constraints for dumped tables
--

--
-- Constraints for table `trax_account_agreement_user`
--
ALTER TABLE `trax_account_agreement_user`
  ADD CONSTRAINT `trax_account_agreement_user_agreement_id_foreign` FOREIGN KEY (`agreement_id`) REFERENCES `trax_account_agreements` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `trax_account_agreement_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `trax_account_users` (`id`) ON DELETE CASCADE;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
