Commit Graph

35 Commits

Author SHA1 Message Date
d38e675c9e rename one variable 2021-05-04 20:13:20 +02:00
cade63a9b7 bump github.com/Kichiyaki/goutil, use reflect in models.isZero 2021-05-04 20:10:21 +02:00
6fc7af4b50 bump github.com/Kichiyaki/goutil 2021-05-04 19:19:14 +02:00
f907e7294e add github.com/Kichiyaki/goutil, github.com/Kichiyaki/appmode, github.com/Kichiyaki/gopgutil 2021-05-02 13:16:32 +02:00
7de549f183 rename/move some of the packages/files 2021-05-02 08:36:10 +02:00
f85a21e86f move logger to the separate package, add checks if models are valid go-pg hooks 2021-04-23 19:29:13 +02:00
1ba3949d57 add a new field (id) to QualificationToProfession 2021-04-03 10:32:17 +02:00
0b14efd014 replace fmt.Errorf with errors.New/errors.Errorf 2021-03-27 16:20:55 +01:00
d8e838c6b7 replace hardcoded sql statements with corresponding sqlutils in models 2021-03-13 18:40:06 +01:00
5303afc6e8 Question: fix answers 2021-03-13 16:41:09 +01:00
8978aed00d models.ProfessionFilter: add a new field - QualificationID 2021-03-13 08:58:23 +01:00
d02d32ec5a fix UserInput.ApplyUpdate uses wrong column name for email field 2021-03-12 11:13:38 +01:00
a92079f315 fix or filters: use WhereOr method instead of Where 2021-03-12 08:20:42 +01:00
300709f527 add a new model - UserFilterOr 2021-03-09 20:17:16 +01:00
16caa7bbe9 UserInput.Sanitize - don't convert a password to lowercase 2021-03-07 19:48:59 +01:00
12d8fb51f4 - add a new method 'HasBasicDataToUpdate' to the two inputs: QuestionInput and QualificationInput
- small changes in error handling (qualification.pgRepository.UpdateMany, qualification.pgRepository.Store, profession.pgRepository.UpdateMany, profession.pgRepository.Store)
2021-03-07 13:06:00 +01:00
82853734be another part of bugfixes 2021-03-06 14:43:50 +01:00
49c8dd355a add graphql schema 2021-03-06 11:54:55 +01:00
fdb934145a add QuestionInput sanitization 2021-03-06 09:03:39 +01:00
b066446051 add QualificationInput sanitization 2021-03-06 09:01:22 +01:00
75253f2c02 add ProfessionInput sanitization 2021-03-06 08:58:57 +01:00
cc93a57af9 add UserInput sanitization 2021-03-06 08:56:54 +01:00
ff9e6289ee [WIP]: initial version of question repository 2021-02-28 17:54:40 +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
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
d39a6317fc add two new packages - envutils and db, add .gitignore 2021-02-27 10:13:35 +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
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