# Pastebin KF1bEDSf model Reputation is table is rw is export { has Int $.guild-id is column{ :id, :type } has Int $.user-id is column{ :id, :type } has Int $.reputation is column; has DateTime $.last-updated is column{ :type } = DateTime.now; method !update-time is before-update { self.last-updated .= now } } red-defaults "Pg"; #schema(Reputation).create; my $guild = 240882564770955274; my $reputee-id = 240882564770955275; .elems ?? (.reputation++ && .^save given .head) !! .create: :1reputation with Reputation.^all.grep({ .guild-id == $guild && .user-id == $reputee-id });