monthly_input_status용 enum 추가
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
package app.module.core.config.application.enums;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public enum MonthStatus {
|
||||||
|
NONE("미등록"), // 미등록
|
||||||
|
NOTHING("데이터없음으로 등록"), // 등록할것이 없음
|
||||||
|
REGISTERED("데이터등록"); // 등록됨
|
||||||
|
|
||||||
|
private final String desc;
|
||||||
|
}
|
||||||
@@ -1114,7 +1114,10 @@ CREATE TABLE monthly_input_status (
|
|||||||
is_deleted boolean DEFAULT false, -- 삭제여부
|
is_deleted boolean DEFAULT false, -- 삭제여부
|
||||||
|
|
||||||
CONSTRAINT monthly_input_status_pkey PRIMARY KEY (id),
|
CONSTRAINT monthly_input_status_pkey PRIMARY KEY (id),
|
||||||
CONSTRAINT fk_monthly_input_status__household FOREIGN KEY (household_seq) REFERENCES household(seq)
|
CONSTRAINT fk_monthly_input_status__household FOREIGN KEY (household_seq) REFERENCES household(seq),
|
||||||
|
CONSTRAINT mis_forest_product_status CHECK (forest_product_status::text = ANY (ARRAY['NONE'::text, 'NOTHING'::text, 'REGISTERED'::text])),
|
||||||
|
CONSTRAINT mis_bank_auto_transfer_status CHECK (bank_auto_transfer_status::text = ANY (ARRAY['NONE'::text, 'NOTHING'::text, 'REGISTERED'::text]))
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
COMMENT ON TABLE monthly_input_status IS '일계부 월별 작성상태';
|
COMMENT ON TABLE monthly_input_status IS '일계부 월별 작성상태';
|
||||||
|
|||||||
Reference in New Issue
Block a user