first commit
This commit is contained in:
26
database/seeds/DatabaseSeeder.php
Normal file
26
database/seeds/DatabaseSeeder.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$this->call(FirstRunSeeder::class);
|
||||
$this->call(PropertyFactSeeder::class);
|
||||
$this->call(PropertyAdditionalInfoKeySeeder::class);
|
||||
$this->call(PropertyAdditionalInfoKeyLocaleSeeder::class);
|
||||
$this->call(PropertyExecuteTypeSeeder::class);
|
||||
$this->call(PropertyExecuteTypeLocaleSeeder::class);
|
||||
$this->call(PropertyExecuteSeeder::class);
|
||||
// $this->call(PropertyPhotoSeeder::class);
|
||||
$this->call(PropertyTypeSeeder::class);
|
||||
$this->call(PropertyGoogleLabelSeeder::class);
|
||||
$this->call(PropertyChainSeeder::class);
|
||||
}
|
||||
}
|
||||
34
database/seeds/DestinationTableSeeder.php
Normal file
34
database/seeds/DestinationTableSeeder.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class DestinationTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
//DB::table('destination')->truncate();
|
||||
/*
|
||||
$unixTimestamp = time();
|
||||
$destinationId = DB::table('destination')->insertGetId([
|
||||
'name'=> 'Turkey', 'parent_id' => 0, 'country_code' => 'TR', 'created_at'=> $unixTimestamp, 'updated_at' => $unixTimestamp
|
||||
]);
|
||||
$destinationId = DB::table('destination')->insertGetId([
|
||||
'name'=> 'Istanbul', 'parent_id' => $destinationId, 'country_code' => 'TR', 'created_at'=> $unixTimestamp, 'updated_at' => $unixTimestamp
|
||||
]);
|
||||
$destinationId = DB::table('destination')->insertGetId([
|
||||
'name'=> 'Fatih', 'parent_id' => $destinationId, 'country_code' => 'TR','created_at'=> $unixTimestamp, 'updated_at' => $unixTimestamp
|
||||
]);
|
||||
|
||||
DB::table('destination')->insertGetId([
|
||||
'name'=> 'Sultanahmet', 'parent_id' => $destinationId, 'country_code' => 'TR', 'created_at'=> $unixTimestamp, 'updated_at' => $unixTimestamp
|
||||
]);
|
||||
*/
|
||||
|
||||
}
|
||||
}
|
||||
775
database/seeds/FirstRunSeeder.php
Normal file
775
database/seeds/FirstRunSeeder.php
Normal file
@@ -0,0 +1,775 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class FirstRunSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
// USER DATA
|
||||
DB::table('user')->insertGetId(
|
||||
[
|
||||
'id' => 1,
|
||||
'gender' => 'M',
|
||||
'name' => 'Test',
|
||||
'surname' => 'User -1-',
|
||||
'email' => 'test1@rezervasyon.com',
|
||||
'password' => Hash::make('123456'),
|
||||
"hash_key" => hash('sha512', Str::random(32) ),
|
||||
'phone' => '02123668989',
|
||||
'user_type' => 1,
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
|
||||
|
||||
]
|
||||
);
|
||||
DB::table('user')->insertGetId(
|
||||
[
|
||||
'id' => 2,
|
||||
'gender' => 'M',
|
||||
'name' => 'Test',
|
||||
'surname' => 'User -2-',
|
||||
'email' => 'test2@rezervasyon.com',
|
||||
'password' => Hash::make('1234567'),
|
||||
"hash_key" => hash('sha512', Str::random(32) ),
|
||||
'phone' => '02123668989',
|
||||
'user_type' => 0,
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
|
||||
);
|
||||
DB::table('user')->insertGetId(
|
||||
|
||||
[
|
||||
'id' => 3,
|
||||
'gender' => 'M',
|
||||
'name' => 'Test',
|
||||
'surname' => 'User -3-',
|
||||
'email' => 'test3@rezervasyon.com',
|
||||
'password' => Hash::make('123456'),
|
||||
"hash_key" => hash('sha512', Str::random(32) ),
|
||||
'phone' => '02123668989',
|
||||
'user_type' => 0,
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
|
||||
// LANGUAGE DATA
|
||||
DB::table('language')->insertGetId(
|
||||
[
|
||||
'id' => 7,
|
||||
'code' => 'en',
|
||||
'name' => 'English',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('language')->insertGetId(
|
||||
[
|
||||
'id' => 10,
|
||||
'code' => 'de',
|
||||
'name' => 'German',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('language')->insertGetId(
|
||||
[
|
||||
'id' => 22,
|
||||
'code' => 'tr',
|
||||
'name' => 'Turkish',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
// CURRENCY DATA
|
||||
DB::table('currency')->insertGetId(
|
||||
[
|
||||
'id' => 1,
|
||||
'code' => 'TRY',
|
||||
'name' => 'Turkish Lira',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('currency')->insertGetId(
|
||||
[
|
||||
'id' => 2,
|
||||
'code' => 'USD',
|
||||
'name' => 'US Dollar',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('currency')->insertGetId(
|
||||
[
|
||||
'id' => 3,
|
||||
'code' => 'EUR',
|
||||
'name' => 'Euro',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
|
||||
// CURRENCY LOCALE DATA
|
||||
DB::table('currency_locale')->insertGetId(
|
||||
[
|
||||
'id' => 1,
|
||||
'currency_code' => 'TRY',
|
||||
'name' => 'Turkish Lira',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('currency_locale')->insertGetId(
|
||||
[
|
||||
'id' => 2,
|
||||
'currency_code' => 'USD',
|
||||
'name' => 'US Dollar',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('currency_locale')->insertGetId(
|
||||
[
|
||||
'id' => 3,
|
||||
'currency_code' => 'EUR',
|
||||
'name' => 'Euro',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
|
||||
// PROPERTY DATA
|
||||
DB::table('property')->insertGetId(
|
||||
[
|
||||
'id' => 1,
|
||||
'name' => 'Test Hotel -1-',
|
||||
'destination_id' => 1,
|
||||
'rating' => 1,
|
||||
'currency_type' => 'EUR',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
|
||||
// PROPERTY MAPPING DATA
|
||||
DB::table('user_property_mapping')->insertGetId(
|
||||
[
|
||||
'id' => 1,
|
||||
'user_id' => 1,
|
||||
'property_id' => 1,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
|
||||
// PROPERTY CONTENT CATEGORY
|
||||
DB::table('property_content_category')->insertGetId(
|
||||
[
|
||||
'id' => 1,
|
||||
'name' => 'Location',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_content_category')->insertGetId(
|
||||
[
|
||||
'id' => 2,
|
||||
'name' => 'Facilities',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_content_category')->insertGetId(
|
||||
[
|
||||
'id' => 3,
|
||||
'name' => 'Rooms',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_content_category')->insertGetId(
|
||||
[
|
||||
'id' => 4,
|
||||
'name' => 'Sports/Entertainment',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_content_category')->insertGetId(
|
||||
[
|
||||
'id' => 5,
|
||||
'name' => 'Meals',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_content_category')->insertGetId(
|
||||
[
|
||||
'id' => 6,
|
||||
'name' => 'Payment',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
// PROPERTY CONTENT CATEGORY LOCALE
|
||||
DB::table('property_content_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 1,
|
||||
'content_category_id' => 1,
|
||||
'name' => 'Location',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_content_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 2,
|
||||
'content_category_id' => 2,
|
||||
'name' => 'Facilities',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_content_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 3,
|
||||
'content_category_id' => 3,
|
||||
'name' => 'Rooms',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_content_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 4,
|
||||
'content_category_id' => 4,
|
||||
'name' => 'Sports/Entertainment',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_content_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 5,
|
||||
'content_category_id' => 5,
|
||||
'name' => 'Meals',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category')->insertGetId(
|
||||
[
|
||||
'id' => 1,
|
||||
'category_name' => "General",
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category')->insertGetId(
|
||||
[
|
||||
'id' => 2,
|
||||
'category_name' => "View of exterior",
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category')->insertGetId(
|
||||
[
|
||||
'id' => 3,
|
||||
'category_name' => "Bar",
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category')->insertGetId(
|
||||
[
|
||||
'id' => 4,
|
||||
'category_name' => "Sport/ leisure",
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category')->insertGetId(
|
||||
[
|
||||
'id' => 5,
|
||||
'category_name' => "Conference facilities",
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category')->insertGetId(
|
||||
[
|
||||
'id' => 6,
|
||||
'category_name' => "Lobby",
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category')->insertGetId(
|
||||
[
|
||||
'id' => 7,
|
||||
'category_name' => "Pool",
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category')->insertGetId(
|
||||
[
|
||||
'id' => 8,
|
||||
'category_name' => "Restaurant",
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category')->insertGetId(
|
||||
[
|
||||
'id' => 9,
|
||||
'category_name' => "Beach",
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category')->insertGetId(
|
||||
[
|
||||
'id' => 10,
|
||||
'category_name' => "Terrace",
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category')->insertGetId(
|
||||
[
|
||||
'id' => 11,
|
||||
'category_name' => "Accommodation",
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 1,
|
||||
'property_photo_category_id' => 1,
|
||||
'category_name' => 'Genel',
|
||||
'locale' => 'tr',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 2,
|
||||
'property_photo_category_id' => 2,
|
||||
'category_name' => 'dış görünüm',
|
||||
'locale' => 'tr',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 3,
|
||||
'property_photo_category_id' => 3,
|
||||
'category_name' => 'bar',
|
||||
'locale' => 'tr',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 4,
|
||||
'property_photo_category_id' => 4,
|
||||
'category_name' => 'Spor/eğlence',
|
||||
'locale' => 'tr',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 5,
|
||||
'property_photo_category_id' => 5,
|
||||
'category_name' => 'Konferans salonu',
|
||||
'locale' => 'tr',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 6,
|
||||
'property_photo_category_id' => 6,
|
||||
'category_name' => 'Lobi',
|
||||
'locale' => 'tr',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 7,
|
||||
'property_photo_category_id' => 7,
|
||||
'category_name' => 'Havuz',
|
||||
'locale' => 'tr',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 8,
|
||||
'property_photo_category_id' => 8,
|
||||
'category_name' => 'Restoran',
|
||||
'locale' => 'tr',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 9,
|
||||
'property_photo_category_id' => 9,
|
||||
'category_name' => 'Kumsal',
|
||||
'locale' => 'tr',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 10,
|
||||
'property_photo_category_id' => 10,
|
||||
'category_name' => 'Teras',
|
||||
'locale' => 'tr',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 11,
|
||||
'property_photo_category_id' => 11,
|
||||
'category_name' => 'Konaklama',
|
||||
'locale' => 'tr',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 12,
|
||||
'property_photo_category_id' => 1,
|
||||
'category_name' => 'General',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 13,
|
||||
'property_photo_category_id' => 2,
|
||||
'category_name' => 'View of exterior',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 14,
|
||||
'property_photo_category_id' => 3,
|
||||
'category_name' => 'Bar',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 15,
|
||||
'property_photo_category_id' => 4,
|
||||
'category_name' => 'Sport/leisure',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 16,
|
||||
'property_photo_category_id' => 5,
|
||||
'category_name' => 'Conference facilities',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 17,
|
||||
'property_photo_category_id' => 6,
|
||||
'category_name' => 'Lobby',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 18,
|
||||
'property_photo_category_id' => 7,
|
||||
'category_name' => 'Pool',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 19,
|
||||
'property_photo_category_id' => 8,
|
||||
'category_name' => 'Restaurant',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 20,
|
||||
'property_photo_category_id' => 9,
|
||||
'category_name' => 'Beach',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 21,
|
||||
'property_photo_category_id' => 10,
|
||||
'category_name' => 'Terrace',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
DB::table('property_photo_category_locale')->insertGetId(
|
||||
[
|
||||
'id' => 22,
|
||||
'property_photo_category_id' => 11,
|
||||
'category_name' => 'Accommodation',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
60
database/seeds/PropertyAdditionalInfoKeyLocaleSeeder.php
Normal file
60
database/seeds/PropertyAdditionalInfoKeyLocaleSeeder.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PropertyAdditionalInfoKeyLocaleSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('property_additional_info_key_locale')->delete();
|
||||
|
||||
\DB::table('property_additional_info_key_locale')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'additional_info_key_id' => 1,
|
||||
'additional_info_key' => 'Building Year',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'additional_info_key_id' => 2,
|
||||
'additional_info_key' => 'Restoration Year',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'additional_info_key_id' => 3,
|
||||
'additional_info_key' => 'Room Count',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
53
database/seeds/PropertyAdditionalInfoKeySeeder.php
Normal file
53
database/seeds/PropertyAdditionalInfoKeySeeder.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PropertyAdditionalInfoKeySeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('property_additional_info_key')->delete();
|
||||
|
||||
\DB::table('property_additional_info_key')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'additional_info_key' => 'Building Year',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'additional_info_key' => 'Restoration Year',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'additional_info_key' => 'Room Count',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
133
database/seeds/PropertyChainSeeder.php
Normal file
133
database/seeds/PropertyChainSeeder.php
Normal file
@@ -0,0 +1,133 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PropertyChainSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('property_chain')->delete();
|
||||
|
||||
\DB::table('property_chain')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'name' => 'Independent',
|
||||
'loyalty' => NULL,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'name' => 'Adam\'s Mark',
|
||||
'loyalty' => NULL,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'name' => 'Shilo Inn',
|
||||
'loyalty' => NULL,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 4,
|
||||
'name' => 'Renaissance',
|
||||
'loyalty' => 'Marriott',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'id' => 5,
|
||||
'name' => 'Best Western',
|
||||
'loyalty' => NULL,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'id' => 6,
|
||||
'name' => 'Clarion',
|
||||
'loyalty' => NULL,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
'id' => 7,
|
||||
'name' => 'Comfort Inn',
|
||||
'loyalty' => NULL,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
7 =>
|
||||
array (
|
||||
'id' => 8,
|
||||
'name' => 'Courtyard',
|
||||
'loyalty' => 'Marriott',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
8 =>
|
||||
array (
|
||||
'id' => 9,
|
||||
'name' => 'Doral',
|
||||
'loyalty' => NULL,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
9 =>
|
||||
array (
|
||||
'id' => 10,
|
||||
'name' => 'Days Inn',
|
||||
'loyalty' => NULL,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
42
database/seeds/PropertyExecuteSeeder.php
Normal file
42
database/seeds/PropertyExecuteSeeder.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PropertyExecuteSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('property_executive')->delete();
|
||||
|
||||
\DB::table('property_executive')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'property_id' => 1,
|
||||
'executive_type_id' => 1,
|
||||
'name_surname' => 'Burhan Çetin',
|
||||
'email' => 'mail@burhancetin.com',
|
||||
'phone_code' => NULL,
|
||||
'phone' => NULL,
|
||||
'mobile_code' => NULL,
|
||||
'mobile' => NULL,
|
||||
'fax_code' => NULL,
|
||||
'fax' => NULL,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1571573358,
|
||||
'updated_at' => 1571573358,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
83
database/seeds/PropertyExecuteTypeLocaleSeeder.php
Normal file
83
database/seeds/PropertyExecuteTypeLocaleSeeder.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PropertyExecuteTypeLocaleSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('property_executive_type_locale')->delete();
|
||||
|
||||
\DB::table('property_executive_type_locale')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'executive_id' => 1,
|
||||
'name' => 'Finance',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'executive_id' => 2,
|
||||
'name' => 'Reservation',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'executive_id' => 3,
|
||||
'name' => 'Sales',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 4,
|
||||
'executive_id' => 4,
|
||||
'name' => 'Activity',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'id' => 5,
|
||||
'executive_id' => 5,
|
||||
'name' => 'Group',
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
73
database/seeds/PropertyExecuteTypeSeeder.php
Normal file
73
database/seeds/PropertyExecuteTypeSeeder.php
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PropertyExecuteTypeSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('property_executive_type')->delete();
|
||||
|
||||
\DB::table('property_executive_type')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'name' => 'Finance',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'name' => 'Reservation',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'name' => 'Sales',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 4,
|
||||
'name' => 'Activity',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'id' => 5,
|
||||
'name' => 'Group',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
5623
database/seeds/PropertyFactSeeder.php
Normal file
5623
database/seeds/PropertyFactSeeder.php
Normal file
File diff suppressed because it is too large
Load Diff
123
database/seeds/PropertyGoogleLabelSeeder.php
Normal file
123
database/seeds/PropertyGoogleLabelSeeder.php
Normal file
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PropertyGoogleLabelSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('photo_google_label')->delete();
|
||||
|
||||
\DB::table('photo_google_label')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'label' => 'Resort',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'label' => 'Building',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'label' => 'Property',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 4,
|
||||
'label' => 'Hotel',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'id' => 5,
|
||||
'label' => 'Home',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'id' => 6,
|
||||
'label' => 'Bar',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
'id' => 7,
|
||||
'label' => 'Pub',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
7 =>
|
||||
array (
|
||||
'id' => 8,
|
||||
'label' => 'Disco',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
8 =>
|
||||
array (
|
||||
'id' => 9,
|
||||
'label' => 'Tavern',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
9 =>
|
||||
array (
|
||||
'id' => 10,
|
||||
'label' => 'Nightclub',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
263
database/seeds/PropertyPhotoSeeder.php
Normal file
263
database/seeds/PropertyPhotoSeeder.php
Normal file
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PropertyPhotoSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('property_photo')->delete();
|
||||
|
||||
\DB::table('property_photo')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'property_id' => 1,
|
||||
'property_photo_category_id' => 2,
|
||||
'photo_path' => '/srv/api.gextranet.com/public/property-photos/1/1571403990.jpg',
|
||||
'photo_name' => '1571403990.jpg',
|
||||
'photo_rank' => NULL,
|
||||
'file_size' => '224086',
|
||||
'file_ext' => 'jpg',
|
||||
'photo_resolution' => '1740x1161',
|
||||
'photo_order' => 1,
|
||||
'is_default' => 0,
|
||||
'is_temp' => 1,
|
||||
'status' => 0,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1571404371,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'property_id' => 1,
|
||||
'property_photo_category_id' => 2,
|
||||
'photo_path' => '/srv/api.gextranet.com/public/property-photos/1/1571404099.jpg',
|
||||
'photo_name' => '1571404099.jpg',
|
||||
'photo_rank' => NULL,
|
||||
'file_size' => '234013',
|
||||
'file_ext' => 'jpg',
|
||||
'photo_resolution' => '1740x1159',
|
||||
'photo_order' => 2,
|
||||
'is_default' => 0,
|
||||
'is_temp' => 1,
|
||||
'status' => 0,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1571404370,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'property_id' => 1,
|
||||
'property_photo_category_id' => 9,
|
||||
'photo_path' => '/srv/api.gextranet.com/public/property-photos/1/1571404388.jpg',
|
||||
'photo_name' => '1571404388.jpg',
|
||||
'photo_rank' => NULL,
|
||||
'file_size' => '195845',
|
||||
'file_ext' => 'jpg',
|
||||
'photo_resolution' => '1740x1171',
|
||||
'photo_order' => 3,
|
||||
'is_default' => 0,
|
||||
'is_temp' => 1,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 4,
|
||||
'property_id' => 1,
|
||||
'property_photo_category_id' => 11,
|
||||
'photo_path' => '/srv/api.gextranet.com/public/property-photos/1/1571404427.jpg',
|
||||
'photo_name' => '1571404427.jpg',
|
||||
'photo_rank' => NULL,
|
||||
'file_size' => '164885',
|
||||
'file_ext' => 'jpg',
|
||||
'photo_resolution' => '1740x1160',
|
||||
'photo_order' => 4,
|
||||
'is_default' => 1,
|
||||
'is_temp' => 1,
|
||||
'status' => 0,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1571407419,
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'id' => 5,
|
||||
'property_id' => 1,
|
||||
'property_photo_category_id' => 6,
|
||||
'photo_path' => '/srv/api.gextranet.com/public/property-photos/1/1571404449.jpg',
|
||||
'photo_name' => '1571404449.jpg',
|
||||
'photo_rank' => NULL,
|
||||
'file_size' => '189233',
|
||||
'file_ext' => 'jpg',
|
||||
'photo_resolution' => '1740x1197',
|
||||
'photo_order' => 5,
|
||||
'is_default' => 0,
|
||||
'is_temp' => 1,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1,
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'id' => 6,
|
||||
'property_id' => 1,
|
||||
'property_photo_category_id' => 2,
|
||||
'photo_path' => '/srv/api.gextranet.com/public/property-photos/1/1571407195.jpg',
|
||||
'photo_name' => '1571407195.jpg',
|
||||
'photo_rank' => NULL,
|
||||
'file_size' => '167280',
|
||||
'file_ext' => 'jpg',
|
||||
'photo_resolution' => '1740x1134',
|
||||
'photo_order' => 6,
|
||||
'is_default' => 0,
|
||||
'is_temp' => 1,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1571407198,
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
'id' => 7,
|
||||
'property_id' => 1,
|
||||
'property_photo_category_id' => 11,
|
||||
'photo_path' => '/srv/api.gextranet.com/public/property-photos/1/1571407199.jpg',
|
||||
'photo_name' => '1571407199.jpg',
|
||||
'photo_rank' => NULL,
|
||||
'file_size' => '195845',
|
||||
'file_ext' => 'jpg',
|
||||
'photo_resolution' => '1740x1171',
|
||||
'photo_order' => 7,
|
||||
'is_default' => 0,
|
||||
'is_temp' => 1,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1571407201,
|
||||
),
|
||||
7 =>
|
||||
array (
|
||||
'id' => 8,
|
||||
'property_id' => 1,
|
||||
'property_photo_category_id' => 2,
|
||||
'photo_path' => '/srv/api.gextranet.com/public/property-photos/1/1571407202.jpg',
|
||||
'photo_name' => '1571407202.jpg',
|
||||
'photo_rank' => NULL,
|
||||
'file_size' => '224086',
|
||||
'file_ext' => 'jpg',
|
||||
'photo_resolution' => '1740x1161',
|
||||
'photo_order' => 8,
|
||||
'is_default' => 0,
|
||||
'is_temp' => 1,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1571407204,
|
||||
),
|
||||
8 =>
|
||||
array (
|
||||
'id' => 9,
|
||||
'property_id' => 1,
|
||||
'property_photo_category_id' => 11,
|
||||
'photo_path' => '/srv/api.gextranet.com/public/property-photos/1/1571407206.jpg',
|
||||
'photo_name' => '1571407206.jpg',
|
||||
'photo_rank' => NULL,
|
||||
'file_size' => '164885',
|
||||
'file_ext' => 'jpg',
|
||||
'photo_resolution' => '1740x1160',
|
||||
'photo_order' => 9,
|
||||
'is_default' => 0,
|
||||
'is_temp' => 1,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1571407208,
|
||||
),
|
||||
9 =>
|
||||
array (
|
||||
'id' => 10,
|
||||
'property_id' => 1,
|
||||
'property_photo_category_id' => 2,
|
||||
'photo_path' => '/srv/api.gextranet.com/public/property-photos/1/1571407209.jpg',
|
||||
'photo_name' => '1571407209.jpg',
|
||||
'photo_rank' => NULL,
|
||||
'file_size' => '234013',
|
||||
'file_ext' => 'jpg',
|
||||
'photo_resolution' => '1740x1159',
|
||||
'photo_order' => 10,
|
||||
'is_default' => 0,
|
||||
'is_temp' => 1,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1571407211,
|
||||
),
|
||||
10 =>
|
||||
array (
|
||||
'id' => 11,
|
||||
'property_id' => 1,
|
||||
'property_photo_category_id' => 9,
|
||||
'photo_path' => '/srv/api.gextranet.com/public/property-photos/1/1571407212.jpg',
|
||||
'photo_name' => '1571407212.jpg',
|
||||
'photo_rank' => NULL,
|
||||
'file_size' => '246154',
|
||||
'file_ext' => 'jpg',
|
||||
'photo_resolution' => '1740x1324',
|
||||
'photo_order' => 11,
|
||||
'is_default' => 0,
|
||||
'is_temp' => 1,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1571407214,
|
||||
),
|
||||
11 =>
|
||||
array (
|
||||
'id' => 12,
|
||||
'property_id' => 1,
|
||||
'property_photo_category_id' => 11,
|
||||
'photo_path' => '/srv/api.gextranet.com/public/property-photos/1/1571407216.jpg',
|
||||
'photo_name' => '1571407216.jpg',
|
||||
'photo_rank' => NULL,
|
||||
'file_size' => '151624',
|
||||
'file_ext' => 'jpg',
|
||||
'photo_resolution' => '1740x1160',
|
||||
'photo_order' => 12,
|
||||
'is_default' => 0,
|
||||
'is_temp' => 1,
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 1,
|
||||
'updated_at' => 1571407218,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
153
database/seeds/PropertyTypeSeeder.php
Normal file
153
database/seeds/PropertyTypeSeeder.php
Normal file
@@ -0,0 +1,153 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PropertyTypeSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('property_type')->delete();
|
||||
|
||||
\DB::table('property_type')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'name' => '1 Stars Hotel',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'name' => '2 Stars Hotel',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'name' => '3 Stars Hotel',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 4,
|
||||
'name' => '4 Stars Hotel',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'id' => 5,
|
||||
'name' => '5 Stars Hotel',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'id' => 6,
|
||||
'name' => 'Boutique hotel',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
'id' => 7,
|
||||
'name' => 'Apart Hotel',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
7 =>
|
||||
array (
|
||||
'id' => 8,
|
||||
'name' => 'Residence',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
8 =>
|
||||
array (
|
||||
'id' => 9,
|
||||
'name' => 'Hostel',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
9 =>
|
||||
array (
|
||||
'id' => 10,
|
||||
'name' => 'Resort',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
10 =>
|
||||
array (
|
||||
'id' => 11,
|
||||
'name' => 'Thermal Facility',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
11 =>
|
||||
array (
|
||||
'id' => 12,
|
||||
'name' => 'Motel',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
12 =>
|
||||
array (
|
||||
'id' => 13,
|
||||
'name' => 'Suit Hotel',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => 0,
|
||||
'updated_at' => 0,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
54
database/seeds/UserTableSeeder.php
Normal file
54
database/seeds/UserTableSeeder.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
class UserTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::table('user')->insertGetId([
|
||||
'id' => 1,
|
||||
'gender' => 'M',
|
||||
'name' => 'Test',
|
||||
'surname' => 'User -1-',
|
||||
'email' => 'test1@rezervasyon.com',
|
||||
'password' => Hash::make('123456'),
|
||||
'phone' => '02123668989',
|
||||
'user_type' => 1,
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
|
||||
|
||||
]);
|
||||
DB::table('user')->insertGetId(
|
||||
[
|
||||
'id' => 2,
|
||||
'gender' => 'M',
|
||||
'name' => 'Test',
|
||||
'surname' => 'User -2-',
|
||||
'email' => 'test2@rezervasyon.com',
|
||||
'password' => Hash::make('1234567'),
|
||||
'phone' => '02123668989',
|
||||
'user_type' => 0,
|
||||
'locale' => 'en',
|
||||
'status' => 1,
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1,
|
||||
'created_at' => time(),
|
||||
'updated_at' => time(),
|
||||
]
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user