refactor: [db] 모델 connection을 codebridge로 변경 + 마이그레이션 파일 전체 삭제
- PMIS 모델 21개 + DailyWorkLog 2개에 $connection = 'codebridge' 추가 - MNG 마이그레이션 파일 18개 전체 삭제 (API에서 관리) - 원칙: MNG는 마이그레이션 파일을 생성하지 않고 API에서만 관리
This commit is contained in:
@@ -12,6 +12,8 @@ class DailyWorkLog extends Model
|
||||
{
|
||||
use BelongsToTenant, ModelTrait, SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'daily_work_logs';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -12,6 +12,8 @@ class DailyWorkLogItem extends Model
|
||||
{
|
||||
use BelongsToTenant, ModelTrait, SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'daily_work_log_items';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -11,6 +11,8 @@ class PmisArchiveFile extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $fillable = [
|
||||
'tenant_id',
|
||||
'folder_id',
|
||||
|
||||
@@ -10,6 +10,8 @@ class PmisArchiveFolder extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $fillable = [
|
||||
'tenant_id',
|
||||
'parent_id',
|
||||
|
||||
@@ -10,6 +10,8 @@ class PmisAttendanceEquipment extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_attendance_equipments';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -10,6 +10,8 @@ class PmisAttendanceWorker extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_attendance_workers';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -10,6 +10,8 @@ class PmisConstructionWorker extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_construction_workers';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -10,6 +10,8 @@ class PmisDailyAttendance extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_daily_attendances';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -10,6 +10,8 @@ class PmisDailyWorkReport extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_daily_work_reports';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -9,6 +9,8 @@ class PmisEquipment extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_equipments';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -9,6 +9,8 @@ class PmisJobType extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_job_types';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -12,6 +12,8 @@ class PmisManual extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $fillable = [
|
||||
'tenant_id',
|
||||
'title',
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
class PmisManualAttachment extends Model
|
||||
{
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $fillable = [
|
||||
'manual_id',
|
||||
'original_name',
|
||||
|
||||
@@ -9,6 +9,8 @@ class PmisMaterial extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_materials';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -12,6 +12,8 @@ class PmisNotice extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $fillable = [
|
||||
'tenant_id',
|
||||
'title',
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
class PmisNoticeAttachment extends Model
|
||||
{
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $fillable = [
|
||||
'notice_id',
|
||||
'original_name',
|
||||
|
||||
@@ -10,6 +10,8 @@ class PmisWorkReportEquipment extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_work_report_equipments';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -10,6 +10,8 @@ class PmisWorkReportMaterial extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_work_report_materials';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -10,6 +10,8 @@ class PmisWorkReportPhoto extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_work_report_photos';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -10,6 +10,8 @@ class PmisWorkReportVolume extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_work_report_volumes';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -10,6 +10,8 @@ class PmisWorkReportWorker extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_work_report_workers';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -9,6 +9,8 @@ class PmisWorkVolume extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $table = 'pmis_work_volumes';
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -11,6 +11,8 @@ class PmisWorker extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'codebridge';
|
||||
|
||||
protected $fillable = [
|
||||
'tenant_id',
|
||||
'user_id',
|
||||
|
||||
Reference in New Issue
Block a user