Много чего
This commit is contained in:
@@ -13,7 +13,9 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('archive_histories', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->morphs('historyable');
|
||||
$table->string('keyarhiv')->nullable();
|
||||
$table->string('foxpro_history_id')->nullable();
|
||||
$table->bigInteger('mis_history_id')->nullable();
|
||||
$table->timestamp('issue_at');
|
||||
$table->timestamp('return_at')->nullable();
|
||||
$table->text('comment')->nullable();
|
||||
|
||||
@@ -13,8 +13,11 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('archive_infos', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->morphs('historyable');
|
||||
$table->string('num');
|
||||
$table->string('foxpro_history_id')->nullable();
|
||||
$table->bigInteger('mis_history_id')->nullable();
|
||||
$table->string('foxpro_num')->nullable();
|
||||
$table->string('mis_num')->nullable();
|
||||
$table->string('archive_num');
|
||||
$table->date('post_in');
|
||||
$table->foreignIdFor(\App\Models\ArchiveStatus::class, 'status_id')->default(1);
|
||||
$table->timestamps();
|
||||
|
||||
21
database/seeders/OrgSeeder.php
Normal file
21
database/seeders/OrgSeeder.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Org;
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class OrgSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
Org::create([
|
||||
'code' => '0',
|
||||
'name' => 'Неизвестно'
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user