package net.mindoverflow.webmarker.utils.sql; import net.mindoverflow.webmarker.utils.sql.primitives.SQLColumn; import net.mindoverflow.webmarker.utils.sql.primitives.SQLDataType; public enum MDatabaseColumn { ALL(new SQLColumn("*"), null), USERNAME(new SQLColumn("username"), SQLDataType.VARCHAR_128), PASSWORD(new SQLColumn("password"), SQLDataType.VARCHAR_128), USER_UUID(new SQLColumn("userid"), SQLDataType.VARCHAR_128), WEB_DOMAIN(new SQLColumn("domain"), SQLDataType.TEXT), TIMESTAMP_UTC(new SQLColumn("timestamp_utc"), SQLDataType.DATETIME), ; private final SQLColumn column; private final SQLDataType type; MDatabaseColumn(SQLColumn column, SQLDataType type) { this.column = column; this.type = type; } public SQLColumn getColumn() { return column; } public SQLDataType getDataType() { return type; } }