1
0
Fork 0
Commit graph

20 commits

Author SHA1 Message Date
c3795dba6a
refactor(training): use golang style of naming (do not repeat pacakge name in struct/func names) 2024-06-23 13:13:44 +02:00
370531a9a5
refactor: use serial as id instead of uuid 2024-06-23 12:40:55 +02:00
ff7e320481
feat: add postgres repository for training 2024-06-23 10:35:38 +02:00
1fe2867b05
feat(training): add repository interface and InMemory repository for TrainingDateAttendee 2024-05-07 22:05:20 +02:00
96eec62a5d
feat(training): add model for TrainingDateAttendee 2024-05-07 22:04:30 +02:00
ef1526a1ac
refactor: move currency to money package and add new type Price, refactor api and use price there too 2024-05-05 18:19:56 +02:00
18d1c98b76
refactor: move testing data to custom package faker (interna/faker) 2024-05-05 17:51:48 +02:00
bd135bcfe6
refactor(training): remove FindAllUpcoming() method from TrainingDateRepository and its implementations 2024-05-05 17:50:47 +02:00
606854d1d5
feat(training): TrainingDateRepository: add FindUpcomingByTrainingID() and FindAllUpcoming() methods 2024-05-05 16:22:55 +02:00
4bf2ae4a06
feat(training): add TrainingDate 2024-05-05 15:56:16 +02:00
6f5a91a92d
refactor(training): InMemoryTrainingRepository uses locking internally 2024-05-05 15:42:48 +02:00
5d83bb0308
feat(training): add pricing and TrainingPrice with amount, currency and type (open|corporate) 2024-05-05 11:55:33 +02:00
d55276886b
feat(training): add Description field 2024-05-05 09:52:04 +02:00
bda8bb9e85
refactor(training): Training.Days is int8 instead of int32 2024-05-05 09:44:56 +02:00
2003b31f14
fix(training): check if training exists before delete 2024-05-04 17:40:03 +02:00
2f6c24652e
refactor(training): Update should just get the struct 2024-05-04 17:39:38 +02:00
04e5710b00
refactor(training): make TrainingID a type alias of uuid.UUID, not new type 2024-05-04 17:20:29 +02:00
adb793034a
feat(training): add InMemoryRepository for mocking 2024-05-04 15:16:41 +02:00
6df8747065
feat(training): add helper methods to TrainingID type
- String()
- MarshalJSON()
- UnmarshalJSON()
2024-05-04 15:01:19 +02:00
627be4d2f4
feat: add training type/model 2024-05-04 11:44:45 +02:00