|
|
@@ -2,6 +2,9 @@
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
+use App\Traits\DateTimeTrait;
|
|
|
+use App\Traits\SoftDeleteTrait;
|
|
|
+
|
|
|
/**
|
|
|
* Class Customer
|
|
|
* @property int $id
|
|
|
@@ -10,16 +13,17 @@ namespace App;
|
|
|
* @property string $phone
|
|
|
* @property string $fax
|
|
|
* @property string $email
|
|
|
- * @property string $dts_created
|
|
|
- * @property string $dts_updated
|
|
|
- * @property string $dts_deleted
|
|
|
+ * @property string $vat_number
|
|
|
*/
|
|
|
|
|
|
class Customer extends Model {
|
|
|
|
|
|
protected static $table = "customer";
|
|
|
protected static $idField = "id";
|
|
|
- protected static $fillableFields = ["address_id", "name", "phone", "fax", "email", "dts_created", "dts_updated", "dts_deleted"];
|
|
|
+ protected static $fillableFields = ["address_id", "name", "phone", "fax", "email", "vat_number", "dts_created", "dts_updated", "dts_deleted"];
|
|
|
+
|
|
|
+ use DateTimeTrait;
|
|
|
+ use SoftDeleteTrait;
|
|
|
|
|
|
// Static methods
|
|
|
|