Skip to content
Snippets Groups Projects
Commit 2894a62a authored by dharaneesh . r ravi's avatar dharaneesh . r ravi
Browse files

implementation of user in RDBMS

parent 5d91c9a7
No related branches found
No related tags found
No related merge requests found
-- Adminer 4.8.1 MySQL 8.3.0 dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
SET NAMES utf8mb4;
CREATE DATABASE `dharaneesh_photogram` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `dharaneesh_photogram`;
DROP TABLE IF EXISTS `auth`;
CREATE TABLE `auth` (
`id` int NOT NULL AUTO_INCREMENT,
`username` tinytext NOT NULL,
`password` tinytext NOT NULL,
`email` varchar(25) NOT NULL,
`phone` varchar(10) NOT NULL,
`active` int NOT NULL DEFAULT '1',
`blocked` int NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`),
UNIQUE KEY `phone` (`phone`),
UNIQUE KEY `username` (`username`(40))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
INSERT INTO `auth` (`id`, `username`, `password`, `email`, `phone`, `active`, `blocked`) VALUES
(7, 'dharaneesh', '$2y$09$e7ice8yMXhXtPE92FeH/KuWoZWLEuZsQwFGIw.TYXV/Ee1LqcR3ei', 'rvi13970@gmail.com', '6374526623', 1, 0);
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int NOT NULL,
`bio` longtext NOT NULL,
`avatar` varchar(1024) NOT NULL,
`firstname` text NOT NULL,
`lastname` text NOT NULL,
`dob` date DEFAULT NULL,
`instagram` varchar(1024) DEFAULT NULL,
`twitter` varchar(1024) DEFAULT NULL,
`facebook` varchar(1024) DEFAULT NULL,
KEY `id` (`id`),
CONSTRAINT `users_ibfk_1` FOREIGN KEY (`id`) REFERENCES `auth` (`id`) ON DELETE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
INSERT INTO `users` (`id`, `bio`, `avatar`, `firstname`, `lastname`, `dob`, `instagram`, `twitter`, `facebook`) VALUES
(7, 'bio', 'avatar', 'first', 'last', '2024-02-12', 'abc', 'abc', 'abc');
-- 2024-02-12 15:11:26
\ No newline at end of file
<?php
<?php
include "libs/load.php";
?>
<!doctype html>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment