-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jan 21, 2026 at 02:09 PM
-- Server version: 10.11.15-MariaDB
-- PHP Version: 8.4.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: `scrsm7_pickle`
--

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

--
-- Table structure for table `sm7_matches`
--

CREATE TABLE `sm7_matches` (
  `id` int(11) NOT NULL,
  `tournament_id` int(11) NOT NULL,
  `team1_id` int(11) NOT NULL,
  `team2_id` int(11) NOT NULL,
  `court_id` int(11) DEFAULT 0 COMMENT '0=Not Live, 1-4=Live Court',
  `match_name` varchar(100) DEFAULT 'Match',
  `s1` int(11) DEFAULT 0,
  `s2` int(11) DEFAULT 0,
  `server_team` int(1) DEFAULT 1,
  `server_num` int(1) DEFAULT 2,
  `is_finished` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `sm7_matches`
--

INSERT INTO `sm7_matches` (`id`, `tournament_id`, `team1_id`, `team2_id`, `court_id`, `match_name`, `s1`, `s2`, `server_team`, `server_num`, `is_finished`) VALUES
(1, 1, 1, 2, 1, 'Mens Doubles', 0, 0, 1, 2, 0);

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

--
-- Table structure for table `sm7_teams`
--

CREATE TABLE `sm7_teams` (
  `id` int(11) NOT NULL,
  `tournament_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `p1` varchar(100) DEFAULT '',
  `p2` varchar(100) DEFAULT '',
  `logo` varchar(500) DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `sm7_teams`
--

INSERT INTO `sm7_teams` (`id`, `tournament_id`, `name`, `p1`, `p2`, `logo`) VALUES
(1, 1, 'Vikings', 'Sankar', 'nikhil', 'https://mscsuper.blr1.digitaloceanspaces.com/teams/1766404665275-701724449.jpg'),
(2, 1, 'SWAN SUPER STRIKERZ', 'Sanjay', 'Venky', 'https://mscsuper.blr1.digitaloceanspaces.com/teams/1766404868870-267238726.jpg');

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

--
-- Table structure for table `sm7_tournaments`
--

CREATE TABLE `sm7_tournaments` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `status` enum('active','finished') DEFAULT 'active',
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `sm7_tournaments`
--

INSERT INTO `sm7_tournaments` (`id`, `name`, `status`, `created_at`) VALUES
(1, 'FCL', 'active', '2026-01-21 12:18:59');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `sm7_matches`
--
ALTER TABLE `sm7_matches`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sm7_teams`
--
ALTER TABLE `sm7_teams`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sm7_tournaments`
--
ALTER TABLE `sm7_tournaments`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `sm7_matches`
--
ALTER TABLE `sm7_matches`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sm7_teams`
--
ALTER TABLE `sm7_teams`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `sm7_tournaments`
--
ALTER TABLE `sm7_tournaments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
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 */;
