Advertisement
Guest User

Untitled

a guest
Nov 28th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. #Uncomment lines with '#'
  2. #Please create test accounts locally in following order
  3.  
  4. #teacher1 - id: 1 username: teacher1 password: teacher1 // CS teacher
  5. #teacher2 - id: 2 username: teacher2 password: teacher2 // Language teacher
  6. #teacher3 - id: 3 username: teacher3 password: teacher3 // Math teacher
  7.  
  8. #student1 - id: 4 username: student1 password: student1
  9. #student2 - id: 5 username: student2 password: student2
  10. #student3 - id: 6 username: student3 password: student3
  11.  
  12. INSERT INTO security.role(
  13. id, parent_id, role_name)
  14. VALUES
  15. (1, null, 'Teacher'),
  16. (2, null, 'Student'),
  17. (3, null, 'Admin');
  18.  
  19. INSERT INTO security.account_role(
  20. account_id, role_id)
  21. VALUES
  22. (1, 1),
  23. (2, 1),
  24. (3, 1),
  25. (4, 2),
  26. (5, 2),
  27. (6, 2);
  28.  
  29. INSERT INTO site.currency(
  30. id, name, symbol)
  31. VALUES
  32. (1, 'PLN', 'ZL'),
  33. (2, 'Dollar', '$'),
  34. (3, 'Euro', '€');
  35.  
  36.  
  37. INSERT INTO site.category(
  38. id, parent_id, name, description)
  39. VALUES
  40. (1, null, 'Computer Science', 'Study of the theory, experimentation, and engineering that form the basis for the design and use of computers'),
  41. (2, null, 'Languages', 'Systems that consists of the development, acquisition, maintenance and use of complex systems of communication, particularly the human ability to do so'),
  42. (3, null, 'Mathematics', 'Study of objects and their relations');
  43.  
  44.  
  45. INSERT INTO site.course(
  46. id, currency_id, teacher_id, name, description, participants, max_participants, price, mettings)
  47. VALUES
  48. (1, 1, 1, 'Introduction to programming', 'This is the best programming course ever', 0, 4, 329.99, 3),
  49. (2, 1, 1, 'Object-oriented programming', 'Programming paradigm used commonly in CS industry', 0, 3, 189.99, 2),
  50. (3, 1, 1, 'C++ for beginners', 'Basics of C and C++', 0, 4, 229.99, 3),
  51.  
  52. (4, 1, 2, 'German', 'Basic of german language', 0, 6, 249.99, 2),
  53. (5, 1, 2, 'French for dummies', 'French for non-french people', 0, 12, 499.99, 6),
  54.  
  55. (6, 1, 3, 'Mathematical analysis', 'Derivates, integrals and all that hard stuff', 0, 4, 329.99, 3);
  56.  
  57. INSERT INTO site.course_category(
  58. category_id, course_id)
  59. VALUES
  60. (1, 1),
  61. (1, 2),
  62. (1, 3),
  63. (2, 4),
  64. (2, 5),
  65. (3, 6);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement