Initial Commit; base feats
This commit is contained in:
commit
9732135e90
137 changed files with 13856 additions and 0 deletions
31
app/Models/Room.php
Normal file
31
app/Models/Room.php
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Room extends Model
|
||||
{
|
||||
|
||||
protected $table = 'rooms';
|
||||
protected $primaryKey = 'room_id';
|
||||
public $timestamps = false;
|
||||
protected $fillable = [
|
||||
'room_name',
|
||||
'room_rows',
|
||||
'room_columns',
|
||||
'user_id', // who added the room?
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function showings()
|
||||
{
|
||||
return $this->hasMany(Showing::class, 'room_id', 'room_id');
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue