/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: a10rolch
  • Date: 2013-04-22 09:51:59 UTC
  • mfrom: (43 lenasys)
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: a10rolch@student.his.se-20130422095159-lv293l4i36pc21dl
Added files:
header (lenasys header, incomplete)
headTag (view for <head>)
Examples (Complete page for course examples)
 examplesMenu
 examplesBody

Show diffs side-by-side

added added

removed removed

Lines of Context:
268
268
-- -------------------------------------------------
269
269
-- Table `lenasys`.`logAssignedQuizzesAnswers`
270
270
-- -----------------------------------------------------
271
 
CREATE  TABLE IF NOT EXISTS `lenasys`.`logUsersQuizLogins` (
 
271
CREATE  TABLE IF NOT EXISTS `lenasys`.`logAssignedQuizzesAnswers` (
272
272
  `id` INT NOT NULL ,
273
273
  `userName` VARCHAR(20)  NOT NULL ,
274
274
  `userAgent` VARCHAR(200) NOT NULL ,
288
288
-- -------------------------------------------------
289
289
-- Table `lenasys`.`logBenchmark`
290
290
-- -----------------------------------------------------
291
 
CREATE  TABLE IF NOT EXISTS `lenasys`.`logUsersQuizLogins` (
 
291
CREATE  TABLE IF NOT EXISTS `lenasys`.`logBenchmark` (
292
292
  `id` INT NOT NULL ,
293
293
  `userName` VARCHAR(20) NOT NULL ,
294
294
  `userAgent` VARCHAR(200) NOT NULL ,
310
310
    UNIQUE INDEX `id_UNIQUE` (`id` ASC))
311
311
ENGINE = InnoDB;
312
312
-- -------------------------------------------------
 
313
  insert into `lenasys`.`UserTypeCodes` (`userTypeCode`,`userType`) 
 
314
  VALUES (0,'Teacher'),(1,'Student');
313
315
 
314
316
insert into `lenasys`.`Users` (`userName`,`name`,`passwd`,`userType`,`ssn`) 
315
317
  VALUES ('sha1','Per Student',sha1('Syp9393'),1,'19900385-2345'),
316
318
  ('md5','Per L�rare',md5('Syp9393'),0,'19800385-2325');
317
319
  
318
 
  insert into `lenasys`.`UserTypeCodes` (`userTypeCode`,`userType`) 
319
 
  VALUES (0,'Teacher'),(1,'Student');
 
320
 
320
321
 
321
322
-- -----------------------------------------------------
322
323
-- allow maximum of 5 succesfull quiz-attemps is a good begining for implementation of the loggingtables to add restriction.