/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to databas.sql

  • Committer: a11andoh
  • Date: 2013-05-22 12:56:44 UTC
  • mfrom: (87 lenasys_b)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: a11andoh@student.his.se-20130522125644-0wkdt772nhva91kc
blurp

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
  `courseID` VARCHAR(10) NOT NULL ,
11
11
  `name` VARCHAR(50) NULL ,
12
12
  `courseData` VARCHAR(128) NULL , -- explanation about course, example: G1N 7,5hp  + additional text
13
 
  `isHidden` BIT(1) NOT NULL DEFAULT 0 , -- Published or not
14
 
  `isPublic` BIT(1) NOT NULL DEFAULT 1 , -- Public or not
 
13
  `isHidden` BIT(1) NOT NULL DEFAULT 0 ,
 
14
  `isPublic` BIT(1) NOT NULL DEFAULT 1 ,
15
15
  PRIMARY KEY (`courseID`))
16
16
ENGINE = InnoDB;
17
17
 
288
288
ENGINE = InnoDB;
289
289
-- -------------------------------------------------
290
290
 
291
 
INSERT INTO `Courses`(`courseID`, `name`, `courseData`, `isPublic`, `isHidden`) 
292
 
VALUES('DA146G'  , 'Computer Graphics' , ' 7,5hp (IKI)', 1, 0),
293
 
('IS317G'  , 'Database Construction' , ' 7,5hp (IKI)', 0, 1),
294
 
('IS114G'  , 'Database Systems' , ' 7,5hp (IKI)', 1, 0),
295
 
('DV313G'  , 'Webdevelopment - XML API' , ' 7,5hp (IKI)', 1, 0),
296
 
('DA330G'  , 'Webprogramming' , ' 7,5hp (IKI)', 0, 0),
297
 
('DA525G'  , 'Advanced Computer Graphics and Shader Programming'  ,  ' 7,5hp (IKI)', 0, 1);
 
291
INSERT INTO `Courses`(`courseID`, `name`, `courseData`) 
 
292
VALUES('DA146G'  , 'Computer Graphics' , ' 7,5hp (IKI)'),
 
293
('IS317G'  , 'Database Construction' , ' 7,5hp (IKI)'),
 
294
('IS114G'  , 'Database Systems' , ' 7,5hp (IKI)'),
 
295
('DV313G'  , 'Webdevelopment - XML API' , ' 7,5hp (IKI)'),
 
296
('DA330G'  , 'Webprogramming' , ' 7,5hp (IKI)'),
 
297
('DA525G'  ,  'Advanced Computer Graphics and Shader Programming'  ,  ' 7,5hp (IKI)');
298
298
 
299
299
INSERT INTO `lenasys`.`Users` (`userName`,`name`,`passwd`, passwdHint,`userType`,`ssn`,`activeCourse`) 
300
300
VALUES ('student','Per Student','06d31954049ffa053039ae83bab3dcd0ebc67195','gamla vanliga' ,2,'19900385-2345', 'DA330G'),
312
312
VALUES ('Vektorgrafik','DA525G', 1),
313
313
('Shading','DA525G', 2),
314
314
('3D','DA525G', 3),
315
 
('SAX Examples','DV313G', 2),
316
 
('DOM Examples 1','DV313G', 3),
317
 
('DOM Examples 2 - Validation','DV313G', 4),
318
 
('DOM Examples 3 - XPATH','DV313G', 5),
319
 
('XSLT Examples 1 - Navigation','DV313G', 6),
320
 
('XSLT 2 - Apply Template and Grouping','DV313G', 7),
321
 
('PHP Introduction','DV313G', 1),
 
315
('Tidigt 90-tal','DV313G', 1),
322
316
('Categorie i nånting','DA330G', 1),
323
317
('Categorie i någontingen mer','DA330G', 2);
324
318
 
330
324
('Globalshading','Shading','DA525G', 2),
331
325
('Bra 3d' , '3D','DA525G', 1),
332
326
('Dålig 3d' , '3D','DA525G', 2),
333
 
('Introduction','PHP Introduction','DV313G', 1),
334
 
('SAX Parsing','SAX Examples','DV313G', 1),
335
 
('Validation','DOM Examples 1','DV313G', 1),
336
 
('XPATH 1','DOM Examples 3 - XPATH','DV313G', 1),
337
 
('XPATH 2','DOM Examples 3 - XPATH','DV313G', 2),
 
327
('Smurfhits','Tidigt 90-tal','DV313G', 1),
 
328
('NES','Tidigt 90-tal','DV313G', 2),
 
329
('Sovmorgon','Tidigt 90-tal','DV313G', 3),
338
330
('Subcategorie i nånting' ,'Categorie i nånting','DA330G', 1),
339
331
('Subcategorie2 i nånting' ,'Categorie i nånting','DA330G', 2),
340
332
('Subcategorie i nåntingen mer', 'Categorie i någontingen mer','DA330G', 1),
341
333
('Subcategorie2 i nåntingen mer', 'Categorie i någontingen mer','DA330G', 2);
342
334
 
343
335
 
 
336
 
344
337
INSERT INTO Quizzes(`quizNr`, `subCategoryName`, `categoryName`, `courseID`, `quizData`, `allowMultipleReplies`,`autoCorrected`, `openingDate`,`closingDate` ) 
345
338
VALUES(1,'punkt' ,'Vektorgrafik','DA525G','Svara så gott du kan, lycka till',1,1, '2013-05-20 08:00:00','2013-05-25 23:59:00'),
346
339
(2,'punkt' ,'Vektorgrafik','DA525G','Lol glhf',1,1, '2013-05-20 08:00:00','2013-05-25 23:59:00'),
347
340
(3,'punkt' ,'Vektorgrafik','DA525G','ajaja detta kommer nu gå bra *NAWHT*',1,1, '2013-05-20 08:00:00','2013-05-25 23:59:00'),
348
 
(1,'linjer' ,'Vektorgrafik','DA525G','happ happ lycka till',1,1, '2013-05-20 08:00:00','2013-05-25 23:59:00'),
349
 
(5,'Validation' ,'DOM Examples 1','DV313G','Validation with DOM',1,1, '2013-05-20 08:00:00','2013-05-25 23:59:00'),
350
 
(5,'SAX Parsing' ,'SAX Examples','DV313G','parsing with SAX',1,1, '2013-05-20 08:00:00','2013-05-25 23:59:00');  
351
 
 
 
341
(1,'linjer' ,'Vektorgrafik','DA525G','happ happ lycka till',1,1, '2013-05-20 08:00:00','2013-05-25 23:59:00');
 
342
  
352
343
 INSERT INTO QuizQuestions(`questionID`, `quizNr`, `subCategoryName`, `categoryName`, `courseID`, `questionData`, `correctAnswer`) 
353
344
 VALUES(1,1,'punkt' ,'Vektorgrafik','DA525G','vad är roten av pi plus solens massa?','inte vet jag lol'),
354
345
(2,1,'punkt' ,'Vektorgrafik','DA525G','hur mår du?','Bra som bara den');
357
348
VALUES('punkt example 1','punkt' ,'Vektorgrafik','DA525G',1,'nån sorts förklaring om punkter'),
358
349
('punkt example 2','punkt' ,'Vektorgrafik','DA525G',2,'nån sorts förklaring om punkter i example 2'),
359
350
('ett till exempel','punkt' ,'Vektorgrafik','DA525G',3,'nån sorts förklaring om punkter igen'),
360
 
('XPATH 1a','XPATH 2' ,'DOM Examples 3 - XPATH','DV313G',1,'XPATH intro'),
361
 
('SAX Example 1b','SAX Parsing' ,'SAX Examples','DV313G',2,'Printing of SAX parsing'),
362
 
('SAX Example 1a','SAX Parsing' ,'SAX Examples','DV313G',1,'Handling of SAX parsing'),
363
351
('linjer example 1','linjer' ,'Vektorgrafik','DA525G',1,'nån sorts förklaring om linjer');
364
352
 
365
353
INSERT INTO Files(`fileName`,`fileType`,`codeLanguage`, `dataBlob`)