storj/satellite
Yingrong Zhao 954ca3c6ee
add db implementation for user_credits table (#2169)
* add dbx queries

* add migration file

* start service

* Add TotalReferredCountByUserId and availableCreditsByUserID

* implement UserCredits interface and UserCredit struct type

* add UserCredits into consoledb

* add setupData helper function

* add test for update

* update lock file

* fix lint error

* add invalidUserCredits tests

* rename method

* adds comments

* add checks for erros in setupData

* change update method to only execute one query per request

* rename vairable

* should return a signal from Update method if the charge is not fully complete

* changes for readability

* prevent sql injection

* rename

* improve readability
2019-06-18 11:55:47 -04:00
..
console add db implementation for user_credits table (#2169) 2019-06-18 11:55:47 -04:00
inspector storage: add monkit task to missing places (#2122) 2019-06-05 16:23:10 +02:00
mailservice Use zap.Stringer instead of zap.String (#2223) 2019-06-18 01:37:43 +02:00
marketing update UI to reflect final mockups (#2175) 2019-06-17 21:57:04 -04:00
metainfo initial value attribution check development (#2091) 2019-06-12 21:35:37 -04:00
orders Use zap.Stringer instead of zap.String (#2223) 2019-06-18 01:37:43 +02:00
payments Use mail.test as domain in emails (#2224) 2019-06-18 02:28:40 +02:00
satellitedb add db implementation for user_credits table (#2169) 2019-06-18 11:55:47 -04:00
vouchers pkg/auth: add monkit task to missing places (#2123) 2019-06-05 07:47:01 -06:00
peer.go value attribution DB interface Insert & Get method support (#2200) 2019-06-18 09:06:33 -04:00