단순 키 연결 구현 시 증계 테입르에 레코드 생성 구현
This commit is contained in:
@@ -47,7 +47,6 @@ interface ConnectionConfig {
|
||||
|
||||
// 단순 키값 연결 설정
|
||||
interface SimpleKeySettings {
|
||||
syncDirection: "unidirectional" | "bidirectional";
|
||||
notes: string;
|
||||
}
|
||||
|
||||
@@ -94,7 +93,6 @@ export const ConnectionSetupModal: React.FC<ConnectionSetupModalProps> = ({
|
||||
|
||||
// 연결 종류별 설정 상태
|
||||
const [simpleKeySettings, setSimpleKeySettings] = useState<SimpleKeySettings>({
|
||||
syncDirection: "bidirectional",
|
||||
notes: "",
|
||||
});
|
||||
|
||||
@@ -130,7 +128,6 @@ export const ConnectionSetupModal: React.FC<ConnectionSetupModalProps> = ({
|
||||
|
||||
// 단순 키값 연결 기본값 설정
|
||||
setSimpleKeySettings({
|
||||
syncDirection: "bidirectional",
|
||||
notes: `${fromTableName}과 ${toTableName} 간의 키값 연결`,
|
||||
});
|
||||
|
||||
@@ -238,25 +235,6 @@ export const ConnectionSetupModal: React.FC<ConnectionSetupModalProps> = ({
|
||||
<span className="text-sm font-medium">단순 키값 연결 설정</span>
|
||||
</div>
|
||||
<div className="space-y-3">
|
||||
<div>
|
||||
<Label htmlFor="syncDirection" className="text-sm">
|
||||
동기화 방향
|
||||
</Label>
|
||||
<Select
|
||||
value={simpleKeySettings.syncDirection}
|
||||
onValueChange={(value: "unidirectional" | "bidirectional") =>
|
||||
setSimpleKeySettings({ ...simpleKeySettings, syncDirection: value })
|
||||
}
|
||||
>
|
||||
<SelectTrigger className="text-sm">
|
||||
<SelectValue />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="unidirectional">단방향 (소스 → 타겟)</SelectItem>
|
||||
<SelectItem value="bidirectional">양방향 (소스 ↔ 타겟)</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
<div>
|
||||
<Label htmlFor="notes" className="text-sm">
|
||||
연결 설명
|
||||
|
||||
Reference in New Issue
Block a user