2014-08-23 22:32:12 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Carbon\Carbon;
|
|
|
|
use Firefly\Database\SingleTableInheritanceEntity;
|
2014-10-13 17:54:20 +02:00
|
|
|
use LaravelBook\Ardent\Ardent;
|
|
|
|
|
2014-08-23 22:32:12 +02:00
|
|
|
|
|
|
|
/**
|
2014-08-31 07:32:48 +02:00
|
|
|
* Reminder
|
2014-08-28 07:53:54 +02:00
|
|
|
*
|
|
|
|
* @property integer $id
|
|
|
|
* @property \Carbon\Carbon $created_at
|
|
|
|
* @property \Carbon\Carbon $updated_at
|
|
|
|
* @property string $class
|
|
|
|
* @property integer $user_id
|
|
|
|
* @property \Carbon\Carbon $startdate
|
|
|
|
* @property \Carbon\Carbon $enddate
|
|
|
|
* @property boolean $active
|
|
|
|
* @property-read \User $user
|
2014-10-13 17:54:20 +02:00
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Reminder whereId($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Reminder whereCreatedAt($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Reminder whereUpdatedAt($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Reminder whereClass($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Reminder whereUserId($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Reminder whereStartdate($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Reminder whereEnddate($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Reminder whereActive($value)
|
2014-08-23 22:32:12 +02:00
|
|
|
*/
|
2014-10-13 17:54:20 +02:00
|
|
|
class Reminder extends Ardent
|
2014-08-23 22:32:12 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
protected $table = 'reminders';
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function getDates()
|
|
|
|
{
|
|
|
|
return ['created_at', 'updated_at', 'startdate', 'enddate'];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* User
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
|
|
*/
|
|
|
|
public function user()
|
|
|
|
{
|
|
|
|
return $this->belongsTo('User');
|
|
|
|
}
|
|
|
|
}
|