feat(project): 계약범위를 글/그림 자유 텍스트 2칸으로 변경 (드롭다운 제거)
All checks were successful
build-and-push / build (push) Successful in 33s
All checks were successful
build-and-push / build (push) Successful in 33s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
df09d23662
commit
db0f857f0a
@ -38,13 +38,6 @@ type Version struct {
|
||||
|
||||
func (m *Version) BeforeCreate(*gorm.DB) error { m.ensureID(); return nil }
|
||||
|
||||
// Consulting metadata enums (stored as free strings for flexibility).
|
||||
const (
|
||||
ScopeText = "text" // 글
|
||||
ScopeGraphic = "graphic" // 그림
|
||||
ScopeBoth = "both" // 글+그림
|
||||
)
|
||||
|
||||
// Project is the core engagement record. The bracketed [admin-only] fields in the
|
||||
// spec live on Contract / PaymentSplit, not here, so Project is safe to expose to
|
||||
// any member who belongs to it.
|
||||
@ -59,7 +52,9 @@ type Project struct {
|
||||
VersionName string `json:"versionName"`
|
||||
ConsultingType string `json:"consultingType"` // 컨설팅 종류
|
||||
Country string `json:"country"` // 제출 국가
|
||||
Scope string `json:"scope"` // text | graphic | both
|
||||
// 계약 범위: 글/그림 각각 자유 입력(무엇을 포함하는지 텍스트로 기술).
|
||||
ScopeText string `json:"scopeText"` // 글 계약 범위
|
||||
ScopeGraphic string `json:"scopeGraphic"` // 그림 계약 범위
|
||||
PMEmail string `json:"pmEmail"` // 프로젝트 PM
|
||||
Cautions string `json:"cautions"` // 주의사항 (구성원 공개)
|
||||
Status string `json:"status"` // planned | active | hold | done | dropped
|
||||
|
||||
@ -81,7 +81,9 @@ func Run(db *gorm.DB) error {
|
||||
|
||||
proj := models.Project{Name: "CardioScan FDA 510(k)", CompanyID: comp.ID, ProductID: prod.ID, VersionID: ver.ID,
|
||||
CompanyName: comp.Name, ProductName: prod.Name, VersionName: ver.Label,
|
||||
ConsultingType: "510(k) 인허가", Country: "미국(FDA)", Scope: models.ScopeBoth,
|
||||
ConsultingType: "510(k) 인허가", Country: "미국(FDA)",
|
||||
ScopeText: "기술문서(STED)·라벨링·사용적합성 보고서 작성 및 검토",
|
||||
ScopeGraphic: "기기 도면·UI 목업·포장 그래픽 제작",
|
||||
PMEmail: "park@special-partners.com", Cautions: "임상 데이터 보완 필요", Status: "active",
|
||||
StartDate: time.Now().Format("2006-01-02"), DueDate: time.Now().AddDate(0, 4, 0).Format("2006-01-02")}
|
||||
db.Create(&proj)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user