Skip to content

Commit 3dd566b

Browse files
update
1 parent dbadbdf commit 3dd566b

14 files changed

+393
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace Modules\Email\App\Models;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
use Illuminate\Database\Eloquent\Factories\HasFactory;
7+
use Modules\Email\Database\factories\DomainDkimFactory;
8+
9+
class DomainDkim extends Model
10+
{
11+
use HasFactory;
12+
13+
/**
14+
* The attributes that are mass assignable.
15+
*/
16+
protected $fillable = [];
17+
18+
protected static function newFactory(): DomainDkimFactory
19+
{
20+
//return DomainDkimFactory::new();
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace Modules\Email\App\Models;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
use Illuminate\Database\Eloquent\Factories\HasFactory;
7+
use Modules\Email\Database\factories\DomainDkimSigningFactory;
8+
9+
class DomainDkimSigning extends Model
10+
{
11+
use HasFactory;
12+
13+
/**
14+
* The attributes that are mass assignable.
15+
*/
16+
protected $fillable = [];
17+
18+
protected static function newFactory(): DomainDkimSigningFactory
19+
{
20+
//return DomainDkimSigningFactory::new();
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace Modules\Email\App\Models;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
use Illuminate\Database\Eloquent\Factories\HasFactory;
7+
use Modules\Email\Database\factories\EmailAliasFactory;
8+
9+
class EmailAlias extends Model
10+
{
11+
use HasFactory;
12+
13+
/**
14+
* The attributes that are mass assignable.
15+
*/
16+
protected $fillable = [];
17+
18+
protected static function newFactory(): EmailAliasFactory
19+
{
20+
//return EmailAliasFactory::new();
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace Modules\Email\App\Models;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
use Illuminate\Database\Eloquent\Factories\HasFactory;
7+
use Modules\Email\Database\factories\EmailAliasDomainFactory;
8+
9+
class EmailAliasDomain extends Model
10+
{
11+
use HasFactory;
12+
13+
/**
14+
* The attributes that are mass assignable.
15+
*/
16+
protected $fillable = [];
17+
18+
protected static function newFactory(): EmailAliasDomainFactory
19+
{
20+
//return EmailAliasDomainFactory::new();
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace Modules\Email\App\Models;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
use Illuminate\Database\Eloquent\Factories\HasFactory;
7+
use Modules\Email\Database\factories\EmailBoxFactory;
8+
9+
class EmailBox extends Model
10+
{
11+
use HasFactory;
12+
13+
/**
14+
* The attributes that are mass assignable.
15+
*/
16+
protected $fillable = [];
17+
18+
protected static function newFactory(): EmailBoxFactory
19+
{
20+
//return EmailBoxFactory::new();
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace Modules\Email\App\Models;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
use Illuminate\Database\Eloquent\Factories\HasFactory;
7+
use Modules\Email\Database\factories\EmailQuotaFactory;
8+
9+
class EmailQuota extends Model
10+
{
11+
use HasFactory;
12+
13+
/**
14+
* The attributes that are mass assignable.
15+
*/
16+
protected $fillable = [];
17+
18+
protected static function newFactory(): EmailQuotaFactory
19+
{
20+
//return EmailQuotaFactory::new();
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace Modules\Email\App\Models;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
use Illuminate\Database\Eloquent\Factories\HasFactory;
7+
use Modules\Email\Database\factories\EmailQuota2Factory;
8+
9+
class EmailQuota2 extends Model
10+
{
11+
use HasFactory;
12+
13+
/**
14+
* The attributes that are mass assignable.
15+
*/
16+
protected $fillable = [];
17+
18+
protected static function newFactory(): EmailQuota2Factory
19+
{
20+
//return EmailQuota2Factory::new();
21+
}
22+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up(): void
13+
{
14+
Schema::create('domain_dkim_signings', function (Blueprint $table) {
15+
$table->id();
16+
17+
$table->string('author')->nullable();
18+
$table->unsignedBigInteger('dkim_id');
19+
20+
$table->timestamps();
21+
});
22+
}
23+
24+
/**
25+
* Reverse the migrations.
26+
*/
27+
public function down(): void
28+
{
29+
Schema::dropIfExists('domain_dkim_signings');
30+
}
31+
};
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up(): void
13+
{
14+
Schema::create('domain_dkims', function (Blueprint $table) {
15+
$table->id();
16+
17+
$table->string('domain_name');
18+
$table->string('description')->default('');
19+
$table->string('selector')->default('default');
20+
$table->text('private_key');
21+
$table->text('public_key');
22+
23+
$table->timestamps();
24+
});
25+
}
26+
27+
/**
28+
* Reverse the migrations.
29+
*/
30+
public function down(): void
31+
{
32+
Schema::dropIfExists('domain_dkims');
33+
}
34+
};
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up(): void
13+
{
14+
Schema::create('email_aliases', function (Blueprint $table) {
15+
$table->id();
16+
17+
$table->string('address');
18+
$table->text('goto');
19+
$table->string('domain');
20+
$table->tinyInteger('active')->default(1);
21+
22+
$table->timestamps();
23+
});
24+
}
25+
26+
/**
27+
* Reverse the migrations.
28+
*/
29+
public function down(): void
30+
{
31+
Schema::dropIfExists('email_aliases');
32+
}
33+
};

0 commit comments

Comments
 (0)