forked from fatmabetul/contesthub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel.py
55 lines (46 loc) · 1.56 KB
/
model.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from google.appengine.ext import db
class Story( db.Model ):
day = db.StringProperty(required=True)
month = db.StringProperty(required=True)
year = db.StringProperty(required=True)
heading = db.StringProperty(required=True)
content = db.StringProperty(multiline=True, required=True)
entrytime = db.DateTimeProperty()
class Summary( db.Model ):
entrytime = db.DateTimeProperty(auto_now_add=True)
summary = db.TextProperty()
name = db.StringProperty()
bests = db.StringProperty()
class Coder( db.Model ):
name = db.StringProperty()
contest = db.IntegerProperty()
solve = db.IntegerProperty()
attempt = db.IntegerProperty()
points = db.IntegerProperty()
rank = db.IntegerProperty()
accuracy = db.StringProperty()
email = db.StringProperty()
md5 = db.StringProperty()
class Team( db.Model ):
name = db.StringProperty()
contest = db.IntegerProperty()
solve = db.IntegerProperty()
attempt = db.IntegerProperty()
points = db.IntegerProperty()
rank = db.IntegerProperty()
accuracy = db.StringProperty()
image = db.StringProperty()
class Event( db.Model ):
name = db.StringProperty()
date = db.DateTimeProperty()
detailed_date = db.StringProperty()
time = db.StringProperty()
location = db.StringProperty()
class Contest( db.Model ):
name = db.StringProperty()
date = db.DateTimeProperty()
detailed_date = db.StringProperty()
time = db.StringProperty()
location = db.StringProperty()
class LastUpdate( db.Model ):
date =db.DateTimeProperty()