--USE OnlineAssessment
USE odiproj1_oa
GO

--======================================================================================
INSERT INTO Languages (code, name, created_by, updated_on, updated_by) VALUES
				('en','English',1,'2020-11-27T18:22:38.623',1),
				('od','Odia',1,'2020-11-27T18:22:38.623',1),
				('hi','Hindi',1,'2020-11-27T18:22:38.623',1),
				('ka','Kannada',1,'2020-11-27T18:22:38.623',1),
				('ta','Tamil',1,'2020-11-27T18:22:38.623',1),
				('te','Telugu',1,'2020-11-27T18:22:38.623',1),
				('be','Bengali',1,'2020-11-27T18:22:38.623',1),
				('ma','Malayallam',1,'2020-11-27T18:22:38.623',1),
				('gu','Gujrati',1,'2020-11-27T18:22:38.623',1),
				('mi','Marathi',1,'2020-11-27T18:22:38.623',1),
				('pu','Punjabi',1,'2020-11-27T18:22:38.623',1);


			
--======================================================================================
set IDENTITY_INSERT States ON

INSERT INTO States (id,code,name, created_by, updated_on, updated_by) VALUES
(1,'ANDAMAN AND NICOBAR ISLANDS', 'ANDAMAN AND NICOBAR ISLANDS',1,'2020-11-27T18:22:38.623',1),
(2,'ANDHRA PRADESH', 'ANDHRA PRADESH',1,'2020-11-27T18:22:38.623',1),
(3, 'ARUNACHAL PRADESH','ARUNACHAL PRADESH',1,'2020-11-27T18:22:38.623',1),
(4,'ASSAM', 'ASSAM',1,'2020-11-27T18:22:38.623',1),
(5, 'BIHAR','BIHAR',1,'2020-11-27T18:22:38.623',1),
(6,'CHATTISGARH','CHATTISGARH',1,'2020-11-27T18:22:38.623',1),
(7,'ODISHA', 'ODISHA',1,'2020-11-27T18:22:38.623',1);

set IDENTITY_INSERT States off;
--======================================================================================

INSERT INTO Institutes (name, state_id, created_by, updated_on, updated_by) VALUES ('Odiware Technologies',7,1,'2020-11-27T18:22:38.623',1);
--======================================================================================

INSERT INTO Plans (name) VALUES 
                        ('Plan-1'),
                        ('Plan-2'),
                        ('Plan-3'),
                        ('Plan-4');

--======================================================================================
INSERT INTO Subscriptions (institute_id, plan_id, name) VALUES (1, 1, 'Subsr');
--======================================================================================
INSERT INTO Roles (code, access_level, name)  VALUES 
                ('SuperAdmin',1, 'Super Administrator'),
                ('Admin',10, 'Administrator of the Institute'),
                ('Teacher',100, 'Teaching Staff of the Institute'),
                ('Student',200, 'Stuent of the Institute'),
                ('Guest', 300,'General User of the Application');

--======================================================================================
INSERT INTO QuestionTypes(code, name, created_by, updated_on, updated_by) VALUES
							('MCQ','Multiple Choice Questions',1,'2020-11-27T18:22:38.623',1),
							('MRQ','Multiple Response Questions',1,'2020-11-27T18:22:38.623',1),
							('TNF','True & False Questions',1,'2020-11-27T18:22:38.623',1),
							('SUB','Subjective Questions',1,'2020-11-27T18:22:38.623',1);

INSERT INTO ExamTypes(code, name) VALUES 
							('Annual','Annual Examination'),
							('BiAnnual','Half Yearly Examination');

--=======================================================================================================
INSERT INTO Users  (role_id,institute_id,email_id,first_name, user_password, user_salt) VALUES
                   (1, 1, 'sa@odiware.com','Chandra Sekhar','NvVqS5/OHFPAE1ekfpd8AQ==','1706e'),
                   (2, 1, 'admin@odiware.com','Kishor Chandra','NvVqS5/OHFPAE1ekfpd8AQ==','1706e'),
                   (3, 1, 'teacher@odiware.com','Sakti Prasanna','NvVqS5/OHFPAE1ekfpd8AQ==','1706e'),
                   (4, 1, 'student@odiware.com','Amit Pattanaik','NvVqS5/OHFPAE1ekfpd8AQ==','1706e'),
                   (5, 1, 'guest@odiware.com','Ranjan','NvVqS5/OHFPAE1ekfpd8AQ==','1706e'),
				   (4, 1, 'pk@gmail.com','Puneet','NvVqS5/OHFPAE1ekfpd8AQ==','1706e'),
				   (4, 1, 'ak@gmail.com','Alka','NvVqS5/OHFPAE1ekfpd8AQ==','1706e');

--=======================================================================================================

/*
INSERT INTO Classes  (institute_id,name,slug,created_on,created_by,updated_on,updated_by) VALUES
						(1,'RRB','rrb','2020-11-27T18:22:38.623',2,'2020-11-27T18:22:38.623',2),
						(1,'JEE','jee','2020-11-27T18:22:38.623',2,'2020-11-27T18:22:38.623',2),
						(1,'NTPC','ntpc','2020-11-27T18:22:38.623',2,'2020-11-27T18:22:38.623',2),
						(1,'UPSC','upsc','2020-11-27T18:22:38.623',2,'2020-11-27T18:22:38.623',2)


INSERT INTO ClassLanguages (language_id,class_id,name,description) VALUES
						(1, 1, 'RRB', 'Railways Entrance'),
						(1, 2,'JEE', 'Engineering'),
						(1, 3, 'NTPC', 'National'),
						(1, 4, 'UPSC', 'Saptama sreni')


INSERT INTO Subjects  (class_id,name,slug,created_on,created_by,updated_on,updated_by) VALUES 
						(1,'Arithmatic ability','arithmatic_ability','2020-11-27T18:22:38.623',2,'2020-11-27T18:22:38.623',2),
						(1,'English','english','2020-11-27T18:22:38.623',2,'2020-11-27T18:22:38.623',2),
						(1,'General awareness','general_awareness','2020-11-27T18:22:38.623',2,'2020-11-27T18:22:38.623',2),
						(1,'Reasoning','reasoning','2020-11-27T18:22:38.623',2,'2020-11-27T18:22:38.623',2);
*/