WIP
Signed-off-by: Nguyen Van Nguyen <nguyennv1981@gmail.com>
This commit is contained in:
parent
454accc470
commit
7ae0aaad31
2 changed files with 14 additions and 0 deletions
|
@ -38,6 +38,8 @@ class Domain extends Model
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'agency_id',
|
'agency_id',
|
||||||
'user_id',
|
'user_id',
|
||||||
|
'admin_user',
|
||||||
|
'admin_password',
|
||||||
'zimbra_id',
|
'zimbra_id',
|
||||||
'name',
|
'name',
|
||||||
'status',
|
'status',
|
||||||
|
@ -50,6 +52,16 @@ class Domain extends Model
|
||||||
'updated_by',
|
'updated_by',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The attributes that should be hidden for serialization.
|
||||||
|
*
|
||||||
|
* @var array<int, string>
|
||||||
|
*/
|
||||||
|
protected $hidden = [
|
||||||
|
'admin_user',
|
||||||
|
'admin_password',
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the coses for the domain.
|
* Get the coses for the domain.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -15,6 +15,8 @@ return new class extends Migration
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->foreignId('agency_id')->default(0)->index();
|
$table->foreignId('agency_id')->default(0)->index();
|
||||||
$table->foreignId('user_id')->default(0)->index();
|
$table->foreignId('user_id')->default(0)->index();
|
||||||
|
$table->string('admin_user');
|
||||||
|
$table->string('admin_password');
|
||||||
$table->string('zimbra_id')->unique();
|
$table->string('zimbra_id')->unique();
|
||||||
$table->string('name')->unique();
|
$table->string('name')->unique();
|
||||||
$table->enum('status', [
|
$table->enum('status', [
|
||||||
|
|
Loading…
Reference in a new issue