Update models to have more relationships and timestamp column definitions.

This commit is contained in:
Taylor Dondich
2019-04-25 14:15:41 -07:00
committed by Paula Quispe
parent 9aec728509
commit 426c2f6f39
5 changed files with 34 additions and 2 deletions

View File

@@ -7,6 +7,9 @@ use Illuminate\Database\Eloquent\Model;
class User extends Model
{
protected $table = "USERS";
// Our custom timestamp columns
const CREATED_AT = 'USR_CREATE_DATE';
const UPDATED_AT = 'USR_UPDATE_DATE';
/**
* Returns the delegations this user has (all of them)