File tree 3 files changed +23
-1
lines changed
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 18
18
"devDependencies" : {
19
19
"@masteringjs/eslint-config" : " 0.1.1" ,
20
20
"@mongoosejs/migrations" : " 0.2.5" ,
21
- "@mongoosejs/studio" : " 0.0.72 " ,
21
+ "@mongoosejs/studio" : " 0.0.74 " ,
22
22
"cors" : " 2.8.5" ,
23
23
"dotenv" : " 16.4.7" ,
24
24
"eslint" : " 9.x" ,
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ const mongoose = require ( 'mongoose' ) ;
4
+
5
+ module . exports = mongoose . Schema ( {
6
+ openCollectiveId : {
7
+ type : Number ,
8
+ required : true
9
+ } ,
10
+ website : {
11
+ type : String ,
12
+ required : true
13
+ } ,
14
+ image : {
15
+ type : String
16
+ } ,
17
+ alt : {
18
+ type : String
19
+ }
20
+ } , { timestamps : true } ) ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ let conn = null;
7
7
const accessTokenSchema = require ( './AccessToken' ) ;
8
8
const invitationSchema = require ( './invitation' ) ;
9
9
const jobSchema = require ( './Job' ) ;
10
+ const openCollectiveSponsorSchema = require ( './OpenCollectiveSponsor' ) ;
10
11
const subscriberSchema = require ( './subscriber' ) ;
11
12
const taskSchema = require ( './task' ) ;
12
13
const userSchema = require ( './user' ) ;
@@ -22,6 +23,7 @@ module.exports = async function connect() {
22
23
conn . model ( 'AccessToken' , accessTokenSchema , 'AccessToken' ) ;
23
24
conn . model ( 'Invitation' , invitationSchema , 'Invitation' ) ;
24
25
conn . model ( 'Job' , jobSchema , 'Job' ) ;
26
+ conn . model ( 'OpenCollectiveSponsor' , openCollectiveSponsorSchema , 'OpenCollectiveSponsor' ) ;
25
27
conn . model ( 'Subscriber' , subscriberSchema , 'Subscriber' ) ;
26
28
conn . model ( 'Task' , taskSchema , 'Task' ) ;
27
29
conn . model ( 'User' , userSchema , 'User' ) ;
You can’t perform that action at this time.
0 commit comments