'integer', 'price' => 'integer', 'is_void' => 'boolean', ]; /** * Relationships. */ public function product() { return $this->belongsTo(Product::class, 'product_id'); } public function store() { return $this->belongsTo(Store::class, 'store_id'); } public function owner() { return $this->belongsTo(User::class, 'owner_id'); } public function creator() { return $this->belongsTo(User::class, 'created_by'); } public function updater() { return $this->belongsTo(User::class, 'updated_by'); } public function createdFor() { return $this->belongsTo(User::class, 'created_for'); } public function session() { return $this->belongsTo(ProductTransactionSession::class, 'transactionsessionhash', 'hashkey'); } }