Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Conversation

gondzo
Copy link
Collaborator

@gondzo gondzo commented May 30, 2020

Before running the code, create the new tables in the db

CREATE TABLE group_project_result (
    user_id DECIMAL(10,0),
    project_id DECIMAL(10,0),
    group_id DECIMAL(10,0),
    old_rating DECIMAL(5,0),
    new_rating DECIMAL(5,0),
    rating_ind DECIMAL(1,0),
    create_date DATETIME YEAR TO FRACTION(3) DEFAULT CURRENT,
    modify_date DATETIME YEAR TO FRACTION(3) DEFAULT CURRENT,
    rating_order INTEGER,
    PRIMARY KEY (user_id, project_id, group_id) 
    CONSTRAINT group_project_result_pkey);


CREATE TABLE group_user_rating (
    user_id DECIMAL(10,0) NOT NULL, 
    group_id DECIMAL(10,0) NOT NULL,
    rating DECIMAL(10,5) DEFAULT 0 NOT NULL, 
    phase_id DECIMAL(3,0) NOT NULL, 
    vol DECIMAL(10,5) DEFAULT 0 NOT NULL, 
    rating_no_vol DECIMAL(10,5) DEFAULT 0 NOT NULL, 
    num_ratings DECIMAL(5,0) DEFAULT 0 NOT NULL, 
    mod_date_time DATETIME YEAR TO FRACTION(3) DEFAULT CURRENT, 
    create_date_time DATETIME YEAR TO FRACTION(3) DEFAULT CURRENT, 
    last_rated_project_id DECIMAL(12,0), 
    PRIMARY KEY (user_id, phase_id, group_id) 
    CONSTRAINT pk_group_user_rating);

@RishiRajSahu let me know if any changes are needed

@RishiRajSahu RishiRajSahu changed the base branch from dev to feature/private_user_ratings June 3, 2020 09:39
@RishiRajSahu RishiRajSahu merged commit 22278d5 into topcoder-archive:feature/private_user_ratings Jun 3, 2020
@RishiRajSahu
Copy link
Contributor

RishiRajSahu commented Jun 3, 2020

@gondzo merging it to feature so that I can take a pull and run locally, hence forth lets do the changes if required to feature.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants