This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-76
lines changed Expand file tree Collapse file tree 3 files changed +11
-76
lines changed Original file line number Diff line number Diff line change @@ -21,64 +21,29 @@ const schema = new Schema({
2121 required : true
2222 } ,
2323 project : {
24- type : String ,
25- index : {
26- global : true ,
27- rangeKey : 'id' ,
28- project : true ,
29- name : 'ProjectIndex'
30- }
24+ type : String
3125 } ,
3226 amount : { type : Number , required : true } ,
3327 description : { type : String , required : true } ,
3428 challengeId : {
3529 type : Number ,
36- required : false ,
37- index : {
38- global : true ,
39- rangeKey : 'id' ,
40- project : true ,
41- name : 'ChallengeIdIndex'
42- }
30+ required : false
4331 } ,
4432 challengeUUID : {
4533 type : String ,
46- required : false ,
47- index : {
48- global : true ,
49- project : true ,
50- name : 'ChallengeUUIdIndex'
51- }
34+ required : false
5235 } ,
5336 closed : {
5437 type : String ,
5538 required : true ,
56- default : 'false' ,
57- index : {
58- global : true ,
59- rangeKey : 'id' ,
60- project : true ,
61- name : 'ClosedIndex'
62- }
39+ default : 'false'
6340 } ,
6441 username : {
6542 type : String ,
66- required : true ,
67- index : {
68- global : true ,
69- rangeKey : 'id' ,
70- project : true ,
71- name : 'UsernameIndex'
72- }
43+ required : true
7344 } ,
7445 status : {
75- type : String ,
76- index : {
77- global : true ,
78- rangeKey : 'id' ,
79- project : true ,
80- name : 'StatusIndex'
81- }
46+ type : String
8247 }
8348} ) ;
8449
Original file line number Diff line number Diff line change @@ -17,26 +17,14 @@ const schema = new Schema({
1717 // From the receiver service
1818 number : {
1919 type : Number ,
20- required : true ,
21- index : {
22- global : true ,
23- rangeKey : 'id' ,
24- project : true ,
25- name : 'NumberIndex'
26- }
20+ required : true
2721 } ,
2822 title : { type : String , required : true } ,
2923 body : { type : String } ,
3024 prizes : { type : [ Number ] , required : true } , // extracted from title
3125 provider : {
3226 type : String ,
33- required : true ,
34- index : {
35- global : true ,
36- rangeKey : 'id' ,
37- project : true ,
38- name : 'ProviderIndex'
39- }
27+ required : true
4028 } , // github or gitlab
4129 repositoryId : {
4230 type : Number ,
Original file line number Diff line number Diff line change @@ -20,13 +20,7 @@ const schema = new Schema({
2020 } ,
2121 userProviderId : {
2222 type : Number ,
23- required : true ,
24- index : {
25- global : true ,
26- rangeKey : 'id' ,
27- project : true ,
28- name : 'UsesProviderIdIndex'
29- }
23+ required : true
3024 } ,
3125 userProviderIdStr : {
3226 type : String ,
@@ -45,24 +39,12 @@ const schema = new Schema({
4539 role : {
4640 type : String ,
4741 required : true ,
48- enum : _ . values ( constants . USER_ROLES ) ,
49- index : {
50- global : true ,
51- project : true ,
52- name : 'RoleIndex' ,
53- rangeKey : 'id'
54- }
42+ enum : _ . values ( constants . USER_ROLES )
5543 } ,
5644 type : {
5745 type : String ,
5846 required : true ,
59- enum : _ . values ( constants . USER_TYPES ) ,
60- index : {
61- global : true ,
62- rangeKey : 'id' ,
63- name : 'TypeIndex' ,
64- project : true
65- }
47+ enum : _ . values ( constants . USER_TYPES )
6648 } ,
6749 // gitlab token data
6850 accessToken : { type : String , required : false } ,
You can’t perform that action at this time.
0 commit comments