Add last updated date to member

This commit is contained in:
philipp lang 2020-08-15 02:18:39 +02:00
parent 817c939978
commit c65741ef41
2 changed files with 6 additions and 1 deletions

View File

@ -8,6 +8,8 @@ use Illuminate\Support\LazyCollection;
class Member extends Model {
public $timestamps = false;
public $geschlechtMaps = [
'männlich' => 19,
'weiblich' => 20,
@ -37,7 +39,8 @@ class Member extends Model {
'konfessionId' => 'confession_id',
'geburtsDatum' => 'birthday',
'eintrittsdatum' => 'joined_at',
'gruppierungId' => 'group_id'
'gruppierungId' => 'group_id',
'lastUpdated' => 'updated_at'
];
protected $casts = [];

View File

@ -37,6 +37,7 @@ class PullMemberTest extends TestCase
'birthday' => ['birthday', ['1991-06-20', '1984-01-17']],
'joined_at' => ['joined_at', ['2005-05-01', null]],
'group_id' => ['group_id', [103, 103]],
'updated_at' => ['updated_at', ['2020-06-28 02:15:24', '2015-02-03 15:20:07']]
];
}
@ -56,6 +57,7 @@ class PullMemberTest extends TestCase
'birthday' => ['birthday', ['1991-06-20', '1984-01-17']],
'joined_at' => ['joined_at', ['2005-05-01', null]],
'group_id' => ['group_id', [103, 103]],
'updated_at' => ['updated_at', ['2020-06-28 02:15:24', '2015-02-03 15:20:07']]
];
}