-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit-db.sql
More file actions
41 lines (17 loc) · 783 Bytes
/
init-db.sql
File metadata and controls
41 lines (17 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
-- Database initialization script
-- This script runs when the database container is first created
-- Create the main database if it doesn't exist
-- (This is handled by POSTGRES_DB environment variable)
-- Create any additional schemas or extensions if needed
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-- Creating a table for storing hashed login credentials
CREATE TABLE IF NOT EXISTS "login_credentials" (
name VARCHAR(200) NOT NULL,
email VARCHAR(200) PRIMARY KEY,
password VARCHAR(1000) NOT NULL
);
-- Creating table for storing student details
-- Creating table for storing faculty details
-- Creating table for storing institution details
-- Creating table for storing courses' details
-- Creating table for storing designation details