Skip to content

Commit 2532bc6

Browse files
authored
Merge pull request #75 from topcoder-platform/dev
Dev to Master
2 parents 8b32b8e + a3a2868 commit 2532bc6

File tree

4 files changed

+9138
-0
lines changed

4 files changed

+9138
-0
lines changed

scripts/example.sql

Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
-- How to edit track or category.
2+
3+
-- See query below
4+
-- Edit project_category_id field to number desired. see Project Category Lookup below
5+
-- For Dev Challenge, it usually use 39 (Code)
6+
-- For Design Challenge, it may vary, but usually 17 (Web Design)
7+
-- For QA, 9 (Bug Hunt)
8+
-- For Data Science, 37 (Marathon Match)
9+
-- For First2Finish, 38 for code, and 40 for design
10+
-- For Task, I can't find any. Maybe it managed in different system?
11+
12+
-- Data for project
13+
-- Project Status ID | 1 | Active
14+
-- Project Category ID | 17 | Web Design
15+
INSERT INTO project (project_id, project_status_id, project_category_id, create_user, create_date, modify_user, modify_date)
16+
VALUES ('32000', '1', '17', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
17+
18+
19+
-- How to edit the active date
20+
-- There are several phase in a project
21+
-- At minimum, it have Registration, Submission, Review
22+
-- In each phase there are several field related to date:
23+
-- fixed_start_time: start of phase
24+
-- scheduled_start_time: same as fixed_start_time
25+
-- scheduled_end_time: end of phase
26+
-- duration: duration (end_time - start_time)
27+
28+
-- The format of time is YYYY-MM-DD HH:MM:SS
29+
-- And duration is in milliseconds
30+
31+
-- If time now is passing the phase then the will be close, field phase_status_id = 3 (Closed)
32+
-- If time in between start time and end time of phase, field phase_status_id = 2 (Open)
33+
-- If time is before start time of phase, field phase_status_id = 1 (Scheduled)
34+
35+
-- Data for project_phase
36+
-- Phase Type ID | Name | Status
37+
-- 1 Registration | Closed
38+
-- 2 Submission | Closed
39+
-- 3 Screening | Closed
40+
-- 4 Review | Closed
41+
-- 11 Approval | Open
42+
INSERT INTO project_phase (project_phase_id, project_id, phase_type_id, phase_status_id, fixed_start_time, scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, duration, create_user, create_date, modify_user, modify_date)
43+
VALUES ('320001', '32000', '1', '3', '2022-09-29 13:41:31', '2022-09-29 13:41:31', '2022-10-01 13:41:31', NULL, NULL, '172800000.0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
44+
INSERT INTO project_phase (project_phase_id, project_id, phase_type_id, phase_status_id, fixed_start_time, scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, duration, create_user, create_date, modify_user, modify_date)
45+
VALUES ('320002', '32000', '2', '3', '2022-09-29 13:41:31', '2022-09-29 13:41:31', '2022-10-01 13:41:31', NULL, NULL, '172800000.0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
46+
INSERT INTO project_phase (project_phase_id, project_id, phase_type_id, phase_status_id, fixed_start_time, scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, duration, create_user, create_date, modify_user, modify_date)
47+
VALUES ('320003', '32000', '3', '3', '2022-10-01 13:41:31', '2022-10-01 13:41:31', '2022-10-02 13:41:31', NULL, NULL, '86400000.0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
48+
INSERT INTO project_phase (project_phase_id, project_id, phase_type_id, phase_status_id, fixed_start_time, scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, duration, create_user, create_date, modify_user, modify_date)
49+
VALUES ('320004', '32000', '4', '3', '2022-10-02 13:41:31', '2022-10-02 13:41:31', '2022-10-03 01:41:31', NULL, NULL, '43200000.0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
50+
INSERT INTO project_phase (project_phase_id, project_id, phase_type_id, phase_status_id, fixed_start_time, scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, duration, create_user, create_date, modify_user, modify_date)
51+
VALUES ('3200011', '32000', '11', '2', '2022-10-03 01:41:31', '2022-10-03 01:41:31', '2022-10-03 07:41:31', NULL, NULL, '21600000.0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
52+
53+
54+
-- Project Category Lookup
55+
-- ID | Project Type ID | Name
56+
-- Dev
57+
-- 6 2 Specification
58+
-- 7 2 Architecture
59+
-- 8 2 Component Production
60+
-- 9 2 Bug Hunt
61+
-- 10 2 Deployment
62+
-- 11 2 Security
63+
-- 12 2 Process
64+
-- 13 2 Test Suites
65+
-- 14 2 Assembly Competition
66+
-- 15 2 Legacy
67+
-- 19 2 UI Prototypes
68+
-- 23 2 Conceptualization
69+
-- 24 2 RIA Build
70+
-- 25 2 RIA Component
71+
-- 26 2 Test Scenarios
72+
-- 27 2 Spec Review
73+
-- 29 2 Copilot Posting
74+
-- 35 2 Content Creation
75+
-- 36 2 Reporting
76+
-- 37 2 Marathon Match
77+
-- 38 2 First2Finish
78+
-- 39 2 Code
79+
-- Design
80+
-- 16 3 Banners/Icons
81+
-- 17 3 Web Design
82+
-- 18 3 Wireframes
83+
-- 20 3 Logo Design
84+
-- 21 3 Print/Presentation
85+
-- 22 3 Idea Generation
86+
-- 30 3 Widget or Mobile Screen Design
87+
-- 31 3 Front-End Flash
88+
-- 32 3 Application Front-End Design
89+
-- 34 3 Other
90+
-- 40 3 Design First2Finish
91+
92+
93+
-- Phase Type Lookup
94+
-- ID | Name
95+
-- 1 Registration
96+
-- 2 Submission
97+
-- 3 Screening
98+
-- 4 Review
99+
-- 5 Appeals
100+
-- 6 Appeals Response
101+
-- 7 Aggregation
102+
-- 8 Aggregation Review
103+
-- 9 Final Fix
104+
-- 10 Final Review
105+
-- 11 Approval
106+
-- 12 Post-Mortem
107+
-- 13 Specification Submission
108+
-- 14 Specification Review
109+
-- 15 Checkpoint Submission
110+
-- 16 Checkpoint Screening
111+
-- 17 Checkpoint Review
112+
-- 18 Iterative Review
113+
114+
-- Phase Status Lookup
115+
-- ID | Name
116+
-- 1 Scheduled
117+
-- 2 Open
118+
-- 3 Closed
119+
120+
121+
122+
-- Data for project_info
123+
-- Project Info Type ID | Name | Value
124+
-- 3 Version ID | 1
125+
-- 4 Developer Forum ID | 0
126+
-- 6 Project Name | Design Challenge #32000
127+
-- 7 Project Version | 1.0
128+
-- 9 Autopilot Option | On
129+
-- 10 Status Notification | On
130+
-- 11 Timeline Notification | On
131+
-- 12 Public | Yes
132+
-- 13 Rated | Yes
133+
-- 14 Eligibility | Open
134+
-- 16 Payments | 0.0
135+
-- 26 Digital Run Flag | On
136+
-- 29 Contest Indicator | On
137+
-- 41 Approval Required | true
138+
-- 43 Send Winner Emails | true
139+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
140+
VALUES ('32000', '3', '1', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
141+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
142+
VALUES ('32000', '4', '0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
143+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
144+
VALUES ('32000', '6', 'Design Challenge #32000', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
145+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
146+
VALUES ('32000', '7', '1.0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
147+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
148+
VALUES ('32000', '9', 'On', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
149+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
150+
VALUES ('32000', '10', 'On', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
151+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
152+
VALUES ('32000', '11', 'On', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
153+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
154+
VALUES ('32000', '12', 'Yes', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
155+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
156+
VALUES ('32000', '13', 'Yes', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
157+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
158+
VALUES ('32000', '14', 'Open', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
159+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
160+
VALUES ('32000', '16', '0.0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
161+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
162+
VALUES ('32000', '26', 'On', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
163+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
164+
VALUES ('32000', '29', 'On', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
165+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
166+
VALUES ('32000', '42', 'true', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
167+
INSERT INTO project_info (project_id, project_info_type_id, value, create_user, create_date, modify_user, modify_date)
168+
VALUES ('32000', '43', 'true', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
169+
170+
-- Data for phase_criteria
171+
INSERT INTO phase_criteria (project_phase_id, phase_criteria_type_id, parameter, create_user, create_date, modify_user, modify_date)
172+
VALUES ('320001', '2', '0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
173+
INSERT INTO phase_criteria (project_phase_id, phase_criteria_type_id, parameter, create_user, create_date, modify_user, modify_date)
174+
VALUES ('320001', '5', 'No', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
175+
INSERT INTO phase_criteria (project_phase_id, phase_criteria_type_id, parameter, create_user, create_date, modify_user, modify_date)
176+
VALUES ('320002', '3', '0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
177+
INSERT INTO phase_criteria (project_phase_id, phase_criteria_type_id, parameter, create_user, create_date, modify_user, modify_date)
178+
VALUES ('320002', '5', 'No', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
179+
INSERT INTO phase_criteria (project_phase_id, phase_criteria_type_id, parameter, create_user, create_date, modify_user, modify_date)
180+
VALUES ('320003', '1', '30000410', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
181+
INSERT INTO phase_criteria (project_phase_id, phase_criteria_type_id, parameter, create_user, create_date, modify_user, modify_date)
182+
VALUES ('320004', '5', 'No', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
183+
INSERT INTO phase_criteria (project_phase_id, phase_criteria_type_id, parameter, create_user, create_date, modify_user, modify_date)
184+
VALUES ('320004', '1', '30000411', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
185+
INSERT INTO phase_criteria (project_phase_id, phase_criteria_type_id, parameter, create_user, create_date, modify_user, modify_date)
186+
VALUES ('3200011', '1', '30000720', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
187+
188+
-- Data for phase_dependency
189+
INSERT INTO phase_dependency (dependency_phase_id, dependent_phase_id, dependency_start, dependent_start, lag_time, create_user, create_date, modify_user, modify_date)
190+
VALUES ('320001', '320002', '1', '1', '0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
191+
INSERT INTO phase_dependency (dependency_phase_id, dependent_phase_id, dependency_start, dependent_start, lag_time, create_user, create_date, modify_user, modify_date)
192+
VALUES ('320002', '320003', '0', '1', '0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
193+
INSERT INTO phase_dependency (dependency_phase_id, dependent_phase_id, dependency_start, dependent_start, lag_time, create_user, create_date, modify_user, modify_date)
194+
VALUES ('320003', '320004', '0', '1', '0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
195+
INSERT INTO phase_dependency (dependency_phase_id, dependent_phase_id, dependency_start, dependent_start, lag_time, create_user, create_date, modify_user, modify_date)
196+
VALUES ('320004', '3200011', '0', '1', '0', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
197+
198+
-- Data for resource
199+
INSERT INTO resource (resource_id, resource_role_id, project_id, project_phase_id, user_id, create_user, create_date, modify_user, modify_date)
200+
VALUES ('32000', '13', '32000', NULL, 132458, '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
201+
202+
-- Data for resource_info
203+
INSERT INTO resource_info (resource_id, resource_info_type_id, value, create_user, create_date, modify_user, modify_date)
204+
VALUES ('32000', '1', '132458', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');
205+
INSERT INTO resource_info (resource_id, resource_info_type_id, value, create_user, create_date, modify_user, modify_date)
206+
VALUES ('32000', '2', 'user', '132458', '2022-09-29 13:41:31', '132458', '2022-09-29 13:41:31');

0 commit comments

Comments
 (0)