Commit f2f7ae2f by 朱继来

调整db

parent aecbf32a
......@@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Model;
class InvoiceComUserModel extends Model
{
protected $connection = 'order';
protected $connection = 'web';
protected $table = 'lie_invoice_com_user';
protected $guarded = ['id'];
protected $primaryKey = 'id';
......
......@@ -8,7 +8,7 @@ use DB;
class UserAmountModel extends Model
{
protected $connection = 'order';
protected $connection = 'web';
protected $table = 'lie_user_amount';
protected $guarded = ['amount_id'];
protected $primaryKey = 'amount_id';
......
......@@ -6,7 +6,7 @@ use Request;
class UserGroupJoinModel extends Model
{
protected $connection = 'order';
protected $connection = 'web';
protected $table = 'lie_user_group_join';
protected $primaryKey = 'id';
public $timestamps = false;
......
......@@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Model;
class UserGroupModel extends Model
{
protected $connection = 'order';
protected $connection = 'web';
protected $table = 'lie_user_group';
protected $primaryKey = 'id';
protected $guarded = ['id'];
......
......@@ -8,7 +8,7 @@ use DB;
class UserInfoModel extends Model
{
protected $connection = 'order';
protected $connection = 'web';
protected $table = 'lie_user_info';
protected $primaryKey = 'ui_id';
public $timestamps = false;
......
......@@ -8,7 +8,7 @@ use DB;
class UserSampleApplyModel extends Model
{
protected $connection = 'order';
protected $connection = 'web';
protected $table = 'lie_user_sample_apply';
protected $primaryKey = 'apply_id';
public $timestamps = true;
......
......@@ -8,7 +8,7 @@ use DB;
class UserSampleInviteModel extends Model
{
protected $connection = 'order';
protected $connection = 'web';
protected $table = 'lie_user_sample_invite';
protected $primaryKey = 'invite_id';
public $timestamps = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment