File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,23 @@ class BlogPost(db.Model):
11
11
12
12
id = db .Column (db .Integer , primary_key = True )
13
13
title = db .Column (db .String , nullable = False )
14
+ company = db .Column (db .String , nullable = False )
15
+ companyurl = db .Column (db .String , nullable = False )
16
+ location = db .Column (db .String , nullable = False )
17
+ salary = db .Column (db .String , nullable = False )
14
18
description = db .Column (db .String , nullable = False )
19
+ jobtype = db .Column (db .String , nullable = False )
15
20
author_id = db .Column (db .Integer , ForeignKey ('users.id' ))
16
21
22
+
17
23
def __init__ (self , title , description , author_id ):
18
24
self .title = title
19
25
self .description = description
26
+ self .company = company
27
+ self .companyurl = companyurl
28
+ self .location = location
29
+ self .salary = salary
30
+ self .jobtype = jobtype
20
31
self .author_id = author_id
21
32
22
33
def __repr__ (self ):
You can’t perform that action at this time.
0 commit comments