first commit
This commit is contained in:
Executable
+51
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Seed\AbstractSeed;
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* classes Seeder
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class classesSeeder extends AbstractSeed
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'name' => 'CSE101',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'name' => 'LAW101',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'name' => 'PHY101',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
|
||||
];
|
||||
$model = $this->table('classes');
|
||||
$model->truncate();
|
||||
$model->insert($data)->save();
|
||||
}
|
||||
}
|
||||
Executable
+312
@@ -0,0 +1,312 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Seed\AbstractSeed;
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* content Seeder
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class contentSeeder extends AbstractSeed
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'content_name' => 'home_page_meta_title',
|
||||
'content_type' => '1',
|
||||
'content' => 'Outline Gurus',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'buy_page_meta_title',
|
||||
'content_type' => '1',
|
||||
'content' => 'Outline Gurus',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'buy_page_meta_description',
|
||||
'content_type' => '1',
|
||||
'content' => 'Outline Gurus',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'home_page_meta_description',
|
||||
'content_type' => '1',
|
||||
'content' => 'Outline Gurus',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'sell_page_meta_title',
|
||||
'content_type' => '1',
|
||||
'content' => 'Outline Gurus',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'sell_page_meta_description',
|
||||
'content_type' => '1',
|
||||
'content' => 'Outline Gurus',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'contact_page_meta_title',
|
||||
'content_type' => '1',
|
||||
'content' => 'Outline Gurus',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'contact_page_meta_description',
|
||||
'content_type' => '1',
|
||||
'content' => 'Outline Gurus',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'sell_page_main_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'Sell Outlines and Lecture Notes',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'terms_conditon',
|
||||
'content_type' => '1',
|
||||
'content' => 'Terms and Condition',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'privacy_policy',
|
||||
'content_type' => '1',
|
||||
'content' => 'Privacy Policy',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'sell_page_sub_heading',
|
||||
'content_type' => '1',
|
||||
'content' => '',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'main_page_sub_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'Law School Outlines and Lecture Notes Written by Students for Students',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'main_page_left_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'Search by school, professor, course, & year',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'main_page_left_sub_heading',
|
||||
'content_type' => '1',
|
||||
'content' => '<p>Preview, Word Count, Ratings and reviews</p><p>Satisfaction Guaranteed</p>',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'main_page_right_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'Sell Your Outlines & Lecture Notes',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'main_page_right_sub_heading',
|
||||
'content_type' => '1',
|
||||
'content' => '<p>Make money selling your Outlines and Lecture Notes!</p><p>Get 20% of Sales Forever!</p>',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'main_page_imag1_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'About Us',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'main_page_imag1_description',
|
||||
'content_type' => '1',
|
||||
'content' => 'We aim to be the go-to destination for law school students to get the very best outlines and lecture notes for an affordable price. Our platform gives authors an incentive to create and post the very best outlines while giving buyers the most information possible before making a purchase.',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'main_page_imag2_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'Are you an Author?',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'main_page_imag2_description',
|
||||
'content_type' => '1',
|
||||
'content' => 'We value your work and believe you should have ownership over your content. For uploading your document you are entitled to 20% of all proceeds from the sale of your outline into perpetuity. Meaning forever!! Additionally, we guarantee your outline and lecture notes will be automatically accepted on to our platform. We are not the gatekeepers to your work, the buying community will be. We will notify authors if any of the work they have submitted have been marked by buyers for violating our terms and conditions. Otherwise buyers can expect immediate acceptance of their documents and 20% of sales as soon as they click submit.',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'main_page_imag3_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'Thinking about buying?',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'main_page_imag3_description',
|
||||
'content_type' => '1',
|
||||
'content' => 'You deserve to know what you are buying before you buy it. Outlines and lecture notes are an essential tool during your semester of studies as well as a tool during exam prep. There's nothing worse than buying an outline without knowing how long it is, what year it was created or if it's and good. Buyers will be able to clearly see the word count and the year it was created prior to purchasing an outline. In addition buyers will be able to see how prior buyers have rated and reviewed the outlines, ensuring you are buying a great outline. If that's not enough, we ensure any buyer who purchases an outline and is not satisfied will be able to download another similar outline for free. Buyers can buy with confidence with ZERO regrets.',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'circle_icon_1_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'Made for Your Course & Professor',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'circle_icon_1_sub_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'Tailored to your needs for optimal exam preparation',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'circle_icon_2_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'Word Count',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'circle_icon_2_sub_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'Longer is not always better but it doesn't hurt!',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'circle_icon_3_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'Ratings & reviews',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'circle_icon_3_sub_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'See prior buyers ratings and reviews',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'circle_icon_4_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'Satisfaction Guaranteed',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'content_name' => 'circle_icon_4_sub_heading',
|
||||
'content_type' => '1',
|
||||
'content' => 'Not Satisfied? <br> Let us know within 24 hours and you will be able to download a similar outline for free',
|
||||
'status' => 1,
|
||||
'created_at' => '2021-08-18',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
|
||||
];
|
||||
$model = $this->table('content');
|
||||
$model->truncate();
|
||||
$model->insert($data)->save();
|
||||
}
|
||||
}
|
||||
Executable
+55
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Seed\AbstractSeed;
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* credential Seeder
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class credentialSeeder extends AbstractSeed
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'email' => 'admin@manaknight.com',
|
||||
'password' => str_replace('$2y$', '$2b$', password_hash('a123456', PASSWORD_BCRYPT)),
|
||||
'type' => 'n',
|
||||
'verify' => 1,
|
||||
'role_id' => 2,
|
||||
'user_id' => 1,
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'email' => 'member@manaknight.com',
|
||||
'password' => str_replace('$2y$', '$2b$', password_hash('a123456', PASSWORD_BCRYPT)),
|
||||
'type' => 'n',
|
||||
'verify' => 1,
|
||||
'role_id' => 1,
|
||||
'user_id' => 2,
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
|
||||
];
|
||||
$model = $this->table('credential');
|
||||
$model->truncate();
|
||||
$model->insert($data)->save();
|
||||
}
|
||||
}
|
||||
Executable
+89
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Seed\AbstractSeed;
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* email Seeder
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class emailSeeder extends AbstractSeed
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'slug' => 'reset-password',
|
||||
'subject' => 'Reset your password',
|
||||
'tag' => 'email,reset_token,link',
|
||||
'html' => 'Hi {{{email}}},<br/>You have requested to reset your password. Please click the link below to reset it.<br/><a href="{{{link}}}/{{{reset_token}}}">Link</a>. <br/>Thanks,<br/> Admin',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'slug' => 'register',
|
||||
'subject' => 'Register',
|
||||
'tag' => 'email',
|
||||
'html' => 'Hi {{{email}}},<br/>Thanks for registering on our platform. <br/>Thanks,<br/> Admin',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'slug' => 'confirm-password',
|
||||
'subject' => 'Confirm your account',
|
||||
'tag' => 'email,confirm_token,link',
|
||||
'html' => 'Hi {{{email}}},<br/>Please click the link below to confirm your account.<br/><a href="{{{link}}}/{{{confirm_token}}}">Link</a>Thanks,<br/> Admin',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'slug' => 'verify',
|
||||
'subject' => 'verify your account',
|
||||
'tag' => 'code',
|
||||
'html' => 'Your verification # is {{{code}}}',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'slug' => 'contact',
|
||||
'subject' => 'contact form message',
|
||||
'tag' => 'name,email,message',
|
||||
'html' => 'Sent by {{{name}}} {{{email}}}<br> {{{message}}}',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'slug' => 'give_review',
|
||||
'subject' => 'Leave a Review',
|
||||
'tag' => 'email,link',
|
||||
'html' => 'Hi {{{email}}}, <br> Thankyou from purchasing from OutlineGurus. Please Leave a review for the document or have any complaint tell us. {{{link}}}',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'slug' => 'dispute_added',
|
||||
'subject' => 'A Dispute is Added',
|
||||
'tag' => 'email,order_id',
|
||||
'html' => 'Hi Admin OutlineGurus,<br> User {{{email}}} has opened a dispute for Order# {{{order_id}}} ',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
|
||||
];
|
||||
$model = $this->table('email');
|
||||
$model->truncate();
|
||||
$model->insert($data)->save();
|
||||
}
|
||||
}
|
||||
Executable
+43
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Seed\AbstractSeed;
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* image Seeder
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class imageSeeder extends AbstractSeed
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'url' => 'https://i.imgur.com/AzJ7DRw.png',
|
||||
'caption' => '',
|
||||
'user_id' => 1,
|
||||
'width' => 581,
|
||||
'height' => 581,
|
||||
'type' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
|
||||
];
|
||||
$model = $this->table('image');
|
||||
$model->truncate();
|
||||
$model->insert($data)->save();
|
||||
}
|
||||
}
|
||||
Executable
+40
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Seed\AbstractSeed;
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* memberProfile Seeder
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class memberProfileSeeder extends AbstractSeed
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'user_id' => 2,
|
||||
'username' => 'member',
|
||||
'school_id' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
|
||||
];
|
||||
$model = $this->table('member_profile');
|
||||
$model->truncate();
|
||||
$model->insert($data)->save();
|
||||
}
|
||||
}
|
||||
Executable
+51
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Seed\AbstractSeed;
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* professor Seeder
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class professorSeeder extends AbstractSeed
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'name' => 'Toni Kroos',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'name' => 'Carlos Casemiro',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'name' => 'Luka Modric',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
|
||||
];
|
||||
$model = $this->table('professor');
|
||||
$model->truncate();
|
||||
$model->insert($data)->save();
|
||||
}
|
||||
}
|
||||
Executable
+43
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Seed\AbstractSeed;
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* role Seeder
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class roleSeeder extends AbstractSeed
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'name' => 'member',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'name' => 'admin',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
|
||||
];
|
||||
$model = $this->table('role');
|
||||
$model->truncate();
|
||||
$model->insert($data)->save();
|
||||
}
|
||||
}
|
||||
Executable
+51
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Seed\AbstractSeed;
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* school Seeder
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class schoolSeeder extends AbstractSeed
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'name' => 'Test School',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'name' => 'ABC School',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'name' => 'PQR School',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
|
||||
];
|
||||
$model = $this->table('school');
|
||||
$model->truncate();
|
||||
$model->insert($data)->save();
|
||||
}
|
||||
}
|
||||
Executable
+75
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Seed\AbstractSeed;
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* setting Seeder
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class settingSeeder extends AbstractSeed
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'key' => 'fixed_paper_amount',
|
||||
'type' => 0,
|
||||
'value' => '50',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'key' => 'payout_percentage_seller',
|
||||
'type' => 0,
|
||||
'value' => '20',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'key' => 'maintenance',
|
||||
'type' => 1,
|
||||
'value' => '0',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'key' => 'version',
|
||||
'type' => 0,
|
||||
'value' => '1.0.0',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'key' => 'copyright',
|
||||
'type' => 0,
|
||||
'value' => 'Copyright © 2021 Manaknightdigital Inc. All rights reserved.',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'key' => 'license_key',
|
||||
'type' => 4,
|
||||
'value' => '',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
|
||||
];
|
||||
$model = $this->table('setting');
|
||||
$model->truncate();
|
||||
$model->insert($data)->save();
|
||||
}
|
||||
}
|
||||
Executable
+40
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Seed\AbstractSeed;
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* sms Seeder
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class smsSeeder extends AbstractSeed
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'slug' => 'verify',
|
||||
'tag' => 'code',
|
||||
'content' => 'Your verification # is {{{code}}}',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
|
||||
];
|
||||
$model = $this->table('sms');
|
||||
$model->truncate();
|
||||
$model->insert($data)->save();
|
||||
}
|
||||
}
|
||||
Executable
+54
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Seed\AbstractSeed;
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* textbook Seeder
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class textbookSeeder extends AbstractSeed
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'name' => 'Head First Java',
|
||||
'isbn' => 'ISBN_1234567',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'name' => 'Oxford Practice Grammar',
|
||||
'isbn' => 'ISBN_4569821',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'name' => 'Algorithms',
|
||||
'isbn' => 'ISBN_9876545',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
|
||||
];
|
||||
$model = $this->table('textbook');
|
||||
$model->truncate();
|
||||
$model->insert($data)->save();
|
||||
}
|
||||
}
|
||||
Executable
+57
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Seed\AbstractSeed;
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* user Seeder
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class userSeeder extends AbstractSeed
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'first_name' => 'Admin',
|
||||
'last_name' => 'Admin',
|
||||
'phone' => '12345678',
|
||||
'image' => 'https://i.imgur.com/AzJ7DRw.png',
|
||||
'image_id' => 1,
|
||||
'refer' => 'admin',
|
||||
'profile_id' => 0,
|
||||
'stripe_id' => '',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
[
|
||||
'first_name' => 'Member',
|
||||
'last_name' => 'Member',
|
||||
'phone' => '12345678',
|
||||
'image' => 'https://i.imgur.com/AzJ7DRw.png',
|
||||
'image_id' => 1,
|
||||
'refer' => 'member',
|
||||
'profile_id' => 0,
|
||||
'stripe_id' => '',
|
||||
'created_at' => date('Y-m-j'),
|
||||
'updated_at' => date('Y-m-j H:i:s'),
|
||||
],
|
||||
|
||||
];
|
||||
$model = $this->table('user');
|
||||
$model->truncate();
|
||||
$model->insert($data)->save();
|
||||
}
|
||||
}
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
Access Denied
|
||||
Reference in New Issue
Block a user