Commit Graph

124 Commits

Author SHA1 Message Date
838a93b8b5 refactor, add question.Usecase implementation 2021-03-05 19:52:15 +01:00
4746b4c153 question - pg_repository - add a new method GenerateTest 2021-03-04 19:27:00 +01:00
7ae94f16a0 question - add a new type 'repository' which includes all helpers, remove helpers 2021-03-04 17:23:36 +01:00
2ee047a801 [WIP]: rename question.Repository.FindByIDAndUpdate -> question.Repository.UpdateOneByID 2021-02-28 17:59:53 +01:00
ff9e6289ee [WIP]: initial version of question repository 2021-02-28 17:54:40 +01:00
17c0d6c4e5 add a new package - filestorage 2021-02-28 15:01:30 +01:00
8fae4a2b03 add qualification repository and usecase 2021-02-27 14:46:00 +01:00
a9d7250623 add user usecase/repository | add admin acc creation when none exists 2021-02-27 14:01:59 +01:00
532cf70b84 profession - add validation to UpdateOne and Store methods 2021-02-27 12:40:06 +01:00
3414f8cbb5 add sort expression sanitization 2021-02-27 12:17:29 +01:00
b1a50a3e1e profession - add usecase 2021-02-27 12:12:16 +01:00
f49dfc5c43 profession: add pg_repository, add a new package errorutils 2021-02-27 11:33:16 +01:00
c3408ef7c8 fix not adding fk constraints 2021-02-27 10:34:06 +01:00
4b4398d851
Merge pull request #2 from zdam-egzamin-zawodowy/db-connection
add two new packages - envutils and db, add .gitignore
2021-02-27 10:14:10 +01:00
d39a6317fc add two new packages - envutils and db, add .gitignore 2021-02-27 10:13:35 +01:00
26abcb7a45
Merge pull request #1 from zdam-egzamin-zawodowy/models
add models
2021-02-27 09:31:50 +01:00
a9e34ccc57 add two new models - QuestionInput and QuestionFilter 2021-02-27 09:29:30 +01:00
ef786b45c1 add two new models - Answer and Question 2021-02-27 09:11:15 +01:00
888734b722 add two new models QualificationFilter and QualificationFilterOr, add struct tags to the QualificationInput and two new fields - AssociateProfession and DissociateProfession 2021-02-27 08:53:51 +01:00
5fe94741ce move sql helpers to the other package, all fields in all inputs are now pointers, add a new model - QualificationToProfession 2021-02-23 19:07:55 +01:00
d7c208c6f5 bump go version in the go.mod file 2021-02-23 18:12:32 +01:00
480fac30f4 add Qualification model, add github.com/gosimple/slug 2021-02-21 18:02:12 +01:00
c8f8e824ff add profession model 2021-02-21 10:30:46 +01:00
0cf8230f35 init 2021-02-21 10:17:54 +01:00