refactor: [db] 모델 connection을 codebridge로 변경 + 마이그레이션 파일 전체 삭제

- PMIS 모델 21개 + DailyWorkLog 2개에 $connection = 'codebridge' 추가
- MNG 마이그레이션 파일 18개 전체 삭제 (API에서 관리)
- 원칙: MNG는 마이그레이션 파일을 생성하지 않고 API에서만 관리
This commit is contained in:
김보곤
2026-03-19 20:21:42 +09:00
parent 9fd3dacd20
commit 39a8d8e2df
41 changed files with 46 additions and 881 deletions

View File

@@ -12,6 +12,8 @@ class DailyWorkLog extends Model
{
use BelongsToTenant, ModelTrait, SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'daily_work_logs';
protected $fillable = [

View File

@@ -12,6 +12,8 @@ class DailyWorkLogItem extends Model
{
use BelongsToTenant, ModelTrait, SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'daily_work_log_items';
protected $fillable = [

View File

@@ -11,6 +11,8 @@ class PmisArchiveFile extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $fillable = [
'tenant_id',
'folder_id',

View File

@@ -10,6 +10,8 @@ class PmisArchiveFolder extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $fillable = [
'tenant_id',
'parent_id',

View File

@@ -10,6 +10,8 @@ class PmisAttendanceEquipment extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_attendance_equipments';
protected $fillable = [

View File

@@ -10,6 +10,8 @@ class PmisAttendanceWorker extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_attendance_workers';
protected $fillable = [

View File

@@ -10,6 +10,8 @@ class PmisConstructionWorker extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_construction_workers';
protected $fillable = [

View File

@@ -10,6 +10,8 @@ class PmisDailyAttendance extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_daily_attendances';
protected $fillable = [

View File

@@ -10,6 +10,8 @@ class PmisDailyWorkReport extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_daily_work_reports';
protected $fillable = [

View File

@@ -9,6 +9,8 @@ class PmisEquipment extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_equipments';
protected $fillable = [

View File

@@ -9,6 +9,8 @@ class PmisJobType extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_job_types';
protected $fillable = [

View File

@@ -12,6 +12,8 @@ class PmisManual extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $fillable = [
'tenant_id',
'title',

View File

@@ -7,6 +7,8 @@
class PmisManualAttachment extends Model
{
protected $connection = 'codebridge';
protected $fillable = [
'manual_id',
'original_name',

View File

@@ -9,6 +9,8 @@ class PmisMaterial extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_materials';
protected $fillable = [

View File

@@ -12,6 +12,8 @@ class PmisNotice extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $fillable = [
'tenant_id',
'title',

View File

@@ -7,6 +7,8 @@
class PmisNoticeAttachment extends Model
{
protected $connection = 'codebridge';
protected $fillable = [
'notice_id',
'original_name',

View File

@@ -10,6 +10,8 @@ class PmisWorkReportEquipment extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_work_report_equipments';
protected $fillable = [

View File

@@ -10,6 +10,8 @@ class PmisWorkReportMaterial extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_work_report_materials';
protected $fillable = [

View File

@@ -10,6 +10,8 @@ class PmisWorkReportPhoto extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_work_report_photos';
protected $fillable = [

View File

@@ -10,6 +10,8 @@ class PmisWorkReportVolume extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_work_report_volumes';
protected $fillable = [

View File

@@ -10,6 +10,8 @@ class PmisWorkReportWorker extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_work_report_workers';
protected $fillable = [

View File

@@ -9,6 +9,8 @@ class PmisWorkVolume extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'pmis_work_volumes';
protected $fillable = [

View File

@@ -11,6 +11,8 @@ class PmisWorker extends Model
{
use SoftDeletes;
protected $connection = 'codebridge';
protected $fillable = [
'tenant_id',
'user_id',