/*
 * Copyright (C) 2022 - Florindo Smilari (spherIC)
 */
package ch.spherIC.recurvebowsight.database.scheme.masterdata;


public final class TblRBSRiser {

    public static final String NAME = "RBS_RISER";

    public static final String COL_ID = "RISER_ID";
    public static final String COL_MANUFACTURER = "RISER_MANUFACTURER";
    public static final String COL_MODEL = "RISER_MODEL";
    public static final String COL_SIZE = "RISER_SIZE";
    public static final String COL_VVIS_H = "RISER_VVIS_H";
    public static final String COL_VVIS_V = "RISER_VVIS_V";

    private TblRBSRiser() {
    }

    public static String getCreateStatement() {
        return "create table " + NAME + "("
                + COL_ID + " Integer primary key autoincrement, "
                + COL_MANUFACTURER + " Text NOT NULL, "
                + COL_MODEL + " Text NOT NULL, "
                + COL_SIZE + " Real NOT NULL, "
                + COL_VVIS_H + " Real NOT NULL, "
                + COL_VVIS_V + " Real NOT NULL, "
                + "constraint UNIQUE_MF_MODEL_SIZE UNIQUE (" + COL_MANUFACTURER + "," + COL_MODEL + "," + COL_SIZE + ")"
                + ");";
    }

}
