Line data Source code
1 : // Package entity は 職域を表すドメインエンティティです
2 : package entity
3 :
4 : import "time"
5 :
6 : // Occupation は 職域を表すドメインエンティティです
7 : type Occupation struct {
8 : ID uint64 `gorm:"primaryKey;autoIncrement;column:id"`
9 : OccupationTemplateID uint64 `gorm:"not null;column:occupation_template_id"`
10 : Code string `gorm:"size:64;not null;unique;column:code"`
11 : SortOrder int `gorm:"not null;default:0;column:sort_order"`
12 : IsActive bool `gorm:"not null;default:true;column:is_active"`
13 : CreatedAt time.Time `gorm:"autoCreateTime;column:created_at"`
14 : UpdatedAt time.Time `gorm:"autoUpdateTime;column:updated_at"`
15 : }
16 :
17 : // TableName は GORM のテーブル名を返します
18 0 : func (Occupation) TableName() string { return "occupations" }
19 :
20 : // Occupation◯◯ID は occupations テーブルの ID を表す定数です。
21 : // マジックナンバーを避けるために、職域 ID を参照する箇所ではこれらを利用します。
22 : const (
23 : // OccupationFrontendEngineerID は frontend_engineer を表す ID です
24 : OccupationFrontendEngineerID uint64 = 1
25 :
26 : // OccupationBackendEngineerID は backend_engineer を表す ID です
27 : OccupationBackendEngineerID uint64 = 2
28 :
29 : // OccupationFullstackEngineerID は fullstack_engineer を表す ID です
30 : OccupationFullstackEngineerID uint64 = 3
31 :
32 : // OccupationMobileEngineerIosID は mobile_engineer_ios を表す ID です
33 : OccupationMobileEngineerIosID uint64 = 4
34 :
35 : // OccupationMobileEngineerAndroidID は mobile_engineer_android を表す ID です
36 : OccupationMobileEngineerAndroidID uint64 = 5
37 :
38 : // OccupationFlutterEngineerID は flutter_engineer を表す ID です
39 : OccupationFlutterEngineerID uint64 = 6
40 :
41 : // OccupationQaTestEngineerID は qa_test_engineer を表す ID です
42 : OccupationQaTestEngineerID uint64 = 7
43 :
44 : // OccupationSreID は sre を表す ID です
45 : OccupationSreID uint64 = 8
46 :
47 : // OccupationInfraEngineerID は infra_engineer を表す ID です
48 : OccupationInfraEngineerID uint64 = 9
49 :
50 : // OccupationCloudEngineerID は cloud_engineer を表す ID です
51 : OccupationCloudEngineerID uint64 = 10
52 :
53 : // OccupationDevopsEngineerID は devops_engineer を表す ID です
54 : OccupationDevopsEngineerID uint64 = 11
55 :
56 : // OccupationSecurityEngineerID は security_engineer を表す ID です
57 : OccupationSecurityEngineerID uint64 = 12
58 :
59 : // OccupationDataEngineerID は data_engineer を表す ID です
60 : OccupationDataEngineerID uint64 = 13
61 :
62 : // OccupationDataAnalystID は data_analyst を表す ID です
63 : OccupationDataAnalystID uint64 = 14
64 :
65 : // OccupationMlEngineerID は ml_engineer を表す ID です
66 : OccupationMlEngineerID uint64 = 15
67 :
68 : // OccupationBiEngineerID は bi_engineer を表す ID です
69 : OccupationBiEngineerID uint64 = 16
70 :
71 : // OccupationProjectManagerID は project_manager を表す ID です
72 : OccupationProjectManagerID uint64 = 17
73 :
74 : // OccupationProductManagerID は product_manager を表す ID です
75 : OccupationProductManagerID uint64 = 18
76 :
77 : // OccupationScrumMasterID は scrum_master を表す ID です
78 : OccupationScrumMasterID uint64 = 19
79 :
80 : // OccupationItConsultantID は it_consultant を表す ID です
81 : OccupationItConsultantID uint64 = 20
82 :
83 : // OccupationBusinessAnalystID は business_analyst を表す ID です
84 : OccupationBusinessAnalystID uint64 = 21
85 :
86 : // OccupationUiuxDesignerID は uiux_designer を表す ID です
87 : OccupationUiuxDesignerID uint64 = 22
88 :
89 : // OccupationWebDesignerID は web_designer を表す ID です
90 : OccupationWebDesignerID uint64 = 23
91 :
92 : // OccupationGraphicDesignerID は graphic_designer を表す ID です
93 : OccupationGraphicDesignerID uint64 = 24
94 :
95 : // OccupationSolutionsArchitectID は solutions_architect を表す ID です
96 : OccupationSolutionsArchitectID uint64 = 25
97 :
98 : // OccupationEnterpriseArchitectID は enterprise_architect を表す ID です
99 : OccupationEnterpriseArchitectID uint64 = 26
100 :
101 : // OccupationApplicationArchitectID は application_architect を表す ID です
102 : OccupationApplicationArchitectID uint64 = 27
103 :
104 : // OccupationDatabaseEngineerID は database_engineer を表す ID です
105 : OccupationDatabaseEngineerID uint64 = 28
106 :
107 : // OccupationNetworkEngineerID は network_engineer を表す ID です
108 : OccupationNetworkEngineerID uint64 = 29
109 :
110 : // OccupationEmbeddedEngineerID は embedded_engineer を表す ID です
111 : OccupationEmbeddedEngineerID uint64 = 30
112 :
113 : // OccupationSapConsultantID は sap_consultant を表す ID です
114 : OccupationSapConsultantID uint64 = 31
115 :
116 : // OccupationSalesforceEngineerID は salesforce_engineer を表す ID です
117 : OccupationSalesforceEngineerID uint64 = 32
118 :
119 : // OccupationTechSupportID は tech_support を表す ID です
120 : OccupationTechSupportID uint64 = 33
121 :
122 : // OccupationHelpdeskID は helpdesk を表す ID です
123 : OccupationHelpdeskID uint64 = 34
124 :
125 : // OccupationTechLeadID は tech_lead を表す ID です
126 : OccupationTechLeadID uint64 = 35
127 :
128 : // OccupationEngineeringManagerID は engineering_manager を表す ID です
129 : OccupationEngineeringManagerID uint64 = 36
130 :
131 : // OccupationTechnicalWriterID は technical_writer を表す ID です
132 : OccupationTechnicalWriterID uint64 = 37
133 :
134 : // OccupationTrainerInstructorID は trainer_instructor を表す ID です
135 : OccupationTrainerInstructorID uint64 = 38
136 :
137 : // OccupationGameEngineerID は game_engineer を表す ID です
138 : OccupationGameEngineerID uint64 = 39
139 :
140 : // OccupationBlockchainEngineerID は blockchain_engineer を表す ID です
141 : OccupationBlockchainEngineerID uint64 = 40
142 :
143 : // OccupationOthersID は others を表す ID です
144 : OccupationOthersID uint64 = 41
145 :
146 : // OccupationMarketingID は marketing を表す ID です
147 : OccupationMarketingID uint64 = 42
148 :
149 : // OccupationDigitalMarketerID は digital_marketer を表す ID です
150 : OccupationDigitalMarketerID uint64 = 43
151 :
152 : // OccupationContentMarketerID は content_marketer を表す ID です
153 : OccupationContentMarketerID uint64 = 44
154 :
155 : // OccupationPrID は pr を表す ID です
156 : OccupationPrID uint64 = 45
157 :
158 : // OccupationCommunityManagerID は community_manager を表す ID です
159 : OccupationCommunityManagerID uint64 = 46
160 :
161 : // OccupationSnsManagerID は sns_manager を表す ID です
162 : OccupationSnsManagerID uint64 = 47
163 :
164 : // OccupationCrmMarketerID は crm_marketer を表す ID です
165 : OccupationCrmMarketerID uint64 = 48
166 :
167 : // OccupationSalesID は sales を表す ID です
168 : OccupationSalesID uint64 = 49
169 :
170 : // OccupationInsideSalesID は inside_sales を表す ID です
171 : OccupationInsideSalesID uint64 = 50
172 :
173 : // OccupationSalesOpsID は sales_ops を表す ID です
174 : OccupationSalesOpsID uint64 = 51
175 :
176 : // OccupationCustomerSuccessID は customer_success を表す ID です
177 : OccupationCustomerSuccessID uint64 = 52
178 :
179 : // OccupationCustomerSupportID は customer_support を表す ID です
180 : OccupationCustomerSupportID uint64 = 53
181 :
182 : // OccupationAccountManagerID は account_manager を表す ID です
183 : OccupationAccountManagerID uint64 = 54
184 :
185 : // OccupationOperatorID は operator を表す ID です
186 : OccupationOperatorID uint64 = 55
187 :
188 : // OccupationBusinessOperationsID は business_operations を表す ID です
189 : OccupationBusinessOperationsID uint64 = 56
190 :
191 : // OccupationGeneralAffairsID は general_affairs を表す ID です
192 : OccupationGeneralAffairsID uint64 = 57
193 :
194 : // OccupationHrID は hr を表す ID です
195 : OccupationHrID uint64 = 58
196 :
197 : // OccupationRecruiterID は recruiter を表す ID です
198 : OccupationRecruiterID uint64 = 59
199 :
200 : // OccupationFinanceAccountingID は finance_accounting を表す ID です
201 : OccupationFinanceAccountingID uint64 = 60
202 :
203 : // OccupationLegalID は legal を表す ID です
204 : OccupationLegalID uint64 = 61
205 :
206 : // OccupationAdminAssistantID は admin_assistant を表す ID です
207 : OccupationAdminAssistantID uint64 = 62
208 :
209 : // OccupationBiAnalystID は bi_analyst を表す ID です
210 : OccupationBiAnalystID uint64 = 63
211 :
212 : // OccupationAnalyticsEngineerID は analytics_engineer を表す ID です
213 : OccupationAnalyticsEngineerID uint64 = 64
214 :
215 : // OccupationMarketingAnalystID は marketing_analyst を表す ID です
216 : OccupationMarketingAnalystID uint64 = 65
217 :
218 : // OccupationProductAnalystID は product_analyst を表す ID です
219 : OccupationProductAnalystID uint64 = 66
220 :
221 : // OccupationEditorID は editor を表す ID です
222 : OccupationEditorID uint64 = 67
223 :
224 : // OccupationWriterID は writer を表す ID です
225 : OccupationWriterID uint64 = 68
226 :
227 : // OccupationCopywriterID は copywriter を表す ID です
228 : OccupationCopywriterID uint64 = 69
229 :
230 : // OccupationVideoEditorID は video_editor を表す ID です
231 : OccupationVideoEditorID uint64 = 70
232 :
233 : // OccupationMotionDesignerID は motion_designer を表す ID です
234 : OccupationMotionDesignerID uint64 = 71
235 :
236 : // OccupationPhotographerID は photographer を表す ID です
237 : OccupationPhotographerID uint64 = 72
238 :
239 : // OccupationIllustratorID は illustrator を表す ID です
240 : OccupationIllustratorID uint64 = 73
241 :
242 : // OccupationTranslatorID は translator を表す ID です
243 : OccupationTranslatorID uint64 = 74
244 :
245 : // OccupationInterpreterID は interpreter を表す ID です
246 : OccupationInterpreterID uint64 = 75
247 :
248 : // OccupationProcurementID は procurement を表す ID です
249 : OccupationProcurementID uint64 = 76
250 :
251 : // OccupationItilServiceManagerID は itil_service_manager を表す ID です
252 : OccupationItilServiceManagerID uint64 = 77
253 : )
254 :
255 : // Occupation◯◯Code は occupations テーブルの Code を表す定数です。
256 : // マジックナンバーを避けるために、職域 Code を参照する箇所ではこれらを利用します。
257 : const (
258 : // OccupationFrontendEngineerCode は frontend_engineer を表す code です
259 : OccupationFrontendEngineerCode string = "frontend_engineer"
260 :
261 : // OccupationBackendEngineerCode は backend_engineer を表す code です
262 : OccupationBackendEngineerCode string = "backend_engineer"
263 :
264 : // OccupationFullstackEngineerCode は fullstack_engineer を表す code です
265 : OccupationFullstackEngineerCode string = "fullstack_engineer"
266 :
267 : // OccupationMobileEngineerIosCode は mobile_engineer_ios を表す code です
268 : OccupationMobileEngineerIosCode string = "mobile_engineer_ios"
269 :
270 : // OccupationMobileEngineerAndroidCode は mobile_engineer_android を表す code です
271 : OccupationMobileEngineerAndroidCode string = "mobile_engineer_android"
272 :
273 : // OccupationFlutterEngineerCode は flutter_engineer を表す code です
274 : OccupationFlutterEngineerCode string = "flutter_engineer"
275 :
276 : // OccupationQaTestEngineerCode は qa_test_engineer を表す code です
277 : OccupationQaTestEngineerCode string = "qa_test_engineer"
278 :
279 : // OccupationSreCode は sre を表す code です
280 : OccupationSreCode string = "sre"
281 :
282 : // OccupationInfraEngineerCode は infra_engineer を表す code です
283 : OccupationInfraEngineerCode string = "infra_engineer"
284 :
285 : // OccupationCloudEngineerCode は cloud_engineer を表す code です
286 : OccupationCloudEngineerCode string = "cloud_engineer"
287 :
288 : // OccupationDevopsEngineerCode は devops_engineer を表す code です
289 : OccupationDevopsEngineerCode string = "devops_engineer"
290 :
291 : // OccupationSecurityEngineerCode は security_engineer を表す code です
292 : OccupationSecurityEngineerCode string = "security_engineer"
293 :
294 : // OccupationDataEngineerCode は data_engineer を表す code です
295 : OccupationDataEngineerCode string = "data_engineer"
296 :
297 : // OccupationDataAnalystCode は data_analyst を表す code です
298 : OccupationDataAnalystCode string = "data_analyst"
299 :
300 : // OccupationMlEngineerCode は ml_engineer を表す code です
301 : OccupationMlEngineerCode string = "ml_engineer"
302 :
303 : // OccupationBiEngineerCode は bi_engineer を表す code です
304 : OccupationBiEngineerCode string = "bi_engineer"
305 :
306 : // OccupationProjectManagerCode は project_manager を表す code です
307 : OccupationProjectManagerCode string = "project_manager"
308 :
309 : // OccupationProductManagerCode は product_manager を表す code です
310 : OccupationProductManagerCode string = "product_manager"
311 :
312 : // OccupationScrumMasterCode は scrum_master を表す code です
313 : OccupationScrumMasterCode string = "scrum_master"
314 :
315 : // OccupationItConsultantCode は it_consultant を表す code です
316 : OccupationItConsultantCode string = "it_consultant"
317 :
318 : // OccupationBusinessAnalystCode は business_analyst を表す code です
319 : OccupationBusinessAnalystCode string = "business_analyst"
320 :
321 : // OccupationUiuxDesignerCode は uiux_designer を表す code です
322 : OccupationUiuxDesignerCode string = "uiux_designer"
323 :
324 : // OccupationWebDesignerCode は web_designer を表す code です
325 : OccupationWebDesignerCode string = "web_designer"
326 :
327 : // OccupationGraphicDesignerCode は graphic_designer を表す code です
328 : OccupationGraphicDesignerCode string = "graphic_designer"
329 :
330 : // OccupationSolutionsArchitectCode は solutions_architect を表す code です
331 : OccupationSolutionsArchitectCode string = "solutions_architect"
332 :
333 : // OccupationEnterpriseArchitectCode は enterprise_architect を表す code です
334 : OccupationEnterpriseArchitectCode string = "enterprise_architect"
335 :
336 : // OccupationApplicationArchitectCode は application_architect を表す code です
337 : OccupationApplicationArchitectCode string = "application_architect"
338 :
339 : // OccupationDatabaseEngineerCode は database_engineer を表す code です
340 : OccupationDatabaseEngineerCode string = "database_engineer"
341 :
342 : // OccupationNetworkEngineerCode は network_engineer を表す code です
343 : OccupationNetworkEngineerCode string = "network_engineer"
344 :
345 : // OccupationEmbeddedEngineerCode は embedded_engineer を表す code です
346 : OccupationEmbeddedEngineerCode string = "embedded_engineer"
347 :
348 : // OccupationSapConsultantCode は sap_consultant を表す code です
349 : OccupationSapConsultantCode string = "sap_consultant"
350 :
351 : // OccupationSalesforceEngineerCode は salesforce_engineer を表す code です
352 : OccupationSalesforceEngineerCode string = "salesforce_engineer"
353 :
354 : // OccupationTechSupportCode は tech_support を表す code です
355 : OccupationTechSupportCode string = "tech_support"
356 :
357 : // OccupationHelpdeskCode は helpdesk を表す code です
358 : OccupationHelpdeskCode string = "helpdesk"
359 :
360 : // OccupationTechLeadCode は tech_lead を表す code です
361 : OccupationTechLeadCode string = "tech_lead"
362 :
363 : // OccupationEngineeringManagerCode は engineering_manager を表す code です
364 : OccupationEngineeringManagerCode string = "engineering_manager"
365 :
366 : // OccupationTechnicalWriterCode は technical_writer を表す code です
367 : OccupationTechnicalWriterCode string = "technical_writer"
368 :
369 : // OccupationTrainerInstructorCode は trainer_instructor を表す code です
370 : OccupationTrainerInstructorCode string = "trainer_instructor"
371 :
372 : // OccupationGameEngineerCode は game_engineer を表す code です
373 : OccupationGameEngineerCode string = "game_engineer"
374 :
375 : // OccupationBlockchainEngineerCode は blockchain_engineer を表す code です
376 : OccupationBlockchainEngineerCode string = "blockchain_engineer"
377 :
378 : // OccupationOthersCode は others を表す code です
379 : OccupationOthersCode string = "others"
380 :
381 : // OccupationMarketingCode は marketing を表す code です
382 : OccupationMarketingCode string = "marketing"
383 :
384 : // OccupationDigitalMarketerCode は digital_marketer を表す code です
385 : OccupationDigitalMarketerCode string = "digital_marketer"
386 :
387 : // OccupationContentMarketerCode は content_marketer を表す code です
388 : OccupationContentMarketerCode string = "content_marketer"
389 :
390 : // OccupationPrCode は pr を表す code です
391 : OccupationPrCode string = "pr"
392 :
393 : // OccupationCommunityManagerCode は community_manager を表す code です
394 : OccupationCommunityManagerCode string = "community_manager"
395 :
396 : // OccupationSnsManagerCode は sns_manager を表す code です
397 : OccupationSnsManagerCode string = "sns_manager"
398 :
399 : // OccupationCrmMarketerCode は crm_marketer を表す code です
400 : OccupationCrmMarketerCode string = "crm_marketer"
401 :
402 : // OccupationSalesCode は sales を表す code です
403 : OccupationSalesCode string = "sales"
404 :
405 : // OccupationInsideSalesCode は inside_sales を表す code です
406 : OccupationInsideSalesCode string = "inside_sales"
407 :
408 : // OccupationSalesOpsCode は sales_ops を表す code です
409 : OccupationSalesOpsCode string = "sales_ops"
410 :
411 : // OccupationCustomerSuccessCode は customer_success を表す code です
412 : OccupationCustomerSuccessCode string = "customer_success"
413 :
414 : // OccupationCustomerSupportCode は customer_support を表す code です
415 : OccupationCustomerSupportCode string = "customer_support"
416 :
417 : // OccupationAccountManagerCode は account_manager を表す code です
418 : OccupationAccountManagerCode string = "account_manager"
419 :
420 : // OccupationOperatorCode は operator を表す code です
421 : OccupationOperatorCode string = "operator"
422 :
423 : // OccupationBusinessOperationsCode は business_operations を表す code です
424 : OccupationBusinessOperationsCode string = "business_operations"
425 :
426 : // OccupationGeneralAffairsCode は general_affairs を表す code です
427 : OccupationGeneralAffairsCode string = "general_affairs"
428 :
429 : // OccupationHrCode は hr を表す code です
430 : OccupationHrCode string = "hr"
431 :
432 : // OccupationRecruiterCode は recruiter を表す code です
433 : OccupationRecruiterCode string = "recruiter"
434 :
435 : // OccupationFinanceAccountingCode は finance_accounting を表す code です
436 : OccupationFinanceAccountingCode string = "finance_accounting"
437 :
438 : // OccupationLegalCode は legal を表す code です
439 : OccupationLegalCode string = "legal"
440 :
441 : // OccupationAdminAssistantCode は admin_assistant を表す code です
442 : OccupationAdminAssistantCode string = "admin_assistant"
443 :
444 : // OccupationBiAnalystCode は bi_analyst を表す code です
445 : OccupationBiAnalystCode string = "bi_analyst"
446 :
447 : // OccupationAnalyticsEngineerCode は analytics_engineer を表す code です
448 : OccupationAnalyticsEngineerCode string = "analytics_engineer"
449 :
450 : // OccupationMarketingAnalystCode は marketing_analyst を表す code です
451 : OccupationMarketingAnalystCode string = "marketing_analyst"
452 :
453 : // OccupationProductAnalystCode は product_analyst を表す code です
454 : OccupationProductAnalystCode string = "product_analyst"
455 :
456 : // OccupationEditorCode は editor を表す code です
457 : OccupationEditorCode string = "editor"
458 :
459 : // OccupationWriterCode は writer を表す code です
460 : OccupationWriterCode string = "writer"
461 :
462 : // OccupationCopywriterCode は copywriter を表す code です
463 : OccupationCopywriterCode string = "copywriter"
464 :
465 : // OccupationVideoEditorCode は video_editor を表す code です
466 : OccupationVideoEditorCode string = "video_editor"
467 :
468 : // OccupationMotionDesignerCode は motion_designer を表す code です
469 : OccupationMotionDesignerCode string = "motion_designer"
470 :
471 : // OccupationPhotographerCode は photographer を表す code です
472 : OccupationPhotographerCode string = "photographer"
473 :
474 : // OccupationIllustratorCode は illustrator を表す code です
475 : OccupationIllustratorCode string = "illustrator"
476 :
477 : // OccupationTranslatorCode は translator を表す code です
478 : OccupationTranslatorCode string = "translator"
479 :
480 : // OccupationInterpreterCode は interpreter を表す code です
481 : OccupationInterpreterCode string = "interpreter"
482 :
483 : // OccupationProcurementCode は procurement を表す code です
484 : OccupationProcurementCode string = "procurement"
485 :
486 : // OccupationItilServiceManagerCode は high_school を表す code です
487 : OccupationItilServiceManagerCode string = "itil_service_manager"
488 : )
|