Files
luos/workflow/engine/src/ProcessMaker/Model/AppNotes.php

48 lines
990 B
PHP
Raw Normal View History

2020-05-25 12:57:58 -04:00
<?php
namespace ProcessMaker\Model;
use Illuminate\Database\Eloquent\Model;
class AppNotes extends Model
{
2020-06-04 10:38:48 -04:00
// Set our table name
2020-05-25 12:57:58 -04:00
protected $table = 'APP_NOTES';
2020-06-04 10:38:48 -04:00
// No timestamps
2020-05-25 12:57:58 -04:00
public $timestamps = false;
2020-06-04 10:38:48 -04:00
// Primary key
protected $primaryKey = 'NOTE_ID';
// The IDs are auto-incrementing
public $incrementing = true;
/**
* The model's default values for attributes.
*
* @var array
*/
protected $attributes = [
'NOTE_TYPE' => 'USER',
'NOTE_ORIGIN_OBJ' => '',
'NOTE_AFFECTED_OBJ1' => '',
'NOTE_AFFECTED_OBJ2' => ''
];
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'APP_UID',
'USR_UID',
'NOTE_DATE',
'NOTE_CONTENT',
'NOTE_TYPE',
'NOTE_AVAILABILITY',
'NOTE_ORIGIN_OBJ',
'NOTE_AFFECTED_OBJ1',
'NOTE_AFFECTED_OBJ2',
'NOTE_RECIPIENTS'
];
2020-05-25 12:57:58 -04:00
}