Database settings for Source

This commit is contained in:
2021-03-21 15:52:57 -03:00
parent 8834689abf
commit 9c5f6aa815

View File

@ -10,6 +10,9 @@ use ProVM\Common\Alias\Model;
* @property \DateInterval $frecuency
*/
class Source extends Model {
public static $_table = 'sources';
public static $_id_column = ['currency_id', 'url'];
protected $currency;
public function currency(): ?Currency {
if ($this->currency === null) {