migrate to gtea from bistbucket

This commit is contained in:
2026-03-15 17:08:23 +07:00
commit 129ca2260c
3716 changed files with 566316 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace Modules\Restaurant\Http\Requests\Table;
use Illuminate\Foundation\Http\FormRequest;
class TableStoreRequest extends FormRequest
{
public function rules(): array
{
return [
'name' => 'required|string|max:255',
'serial' => 'nullable|string|max:50', // optional unique table code
'location' => 'nullable|string|max:255',
'section' => 'nullable|string|max:255', // e.g., VIP, Main Floor
'table_type' => 'nullable|in:regular,vip,outdoor,booth',
'capacity' => 'required',
'is_bookable' => 'nullable|boolean',
'qr_code' => 'nullable|string|max:255',
'image' => 'nullable|image|mimes:jpeg,png,jpg,gif,webp',
'position_x' => 'nullable',
'position_y' => 'nullable',
'rotation' => 'nullable|numeric|min:0|max:360',
'z_index' => 'nullable',
'status' => 'nullable|in:0,1',
];
}
public function authorize(): bool
{
return true;
}
}

View File

@@ -0,0 +1,33 @@
<?php
namespace Modules\Restaurant\Http\Requests\Table;
use Illuminate\Foundation\Http\FormRequest;
class TableUpdateRequest extends FormRequest
{
public function rules(): array
{
return [
'name' => 'required|string|max:255',
'serial' => 'nullable|string|max:50', // optional unique table code
'location' => 'nullable|string|max:255',
'section' => 'nullable|string|max:255', // e.g., VIP, Main Floor
'table_type' => 'nullable|in:regular,vip,outdoor,booth',
'capacity' => 'required',
'is_bookable' => 'nullable|boolean',
'qr_code' => 'nullable|string|max:255',
'image' => 'nullable|image|mimes:jpeg,png,jpg,gif,webp',
'position_x' => 'nullable',
'position_y' => 'nullable',
'rotation' => 'nullable|numeric|min:0|max:360',
'z_index' => 'nullable',
'status' => 'nullable|in:0,1',
];
}
public function authorize(): bool
{
return true;
}
}