forked from jherskowitz/tomahklet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
models.py
executable file
·26 lines (22 loc) · 906 Bytes
/
models.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
from google.appengine.ext import db
class PlaylistTrack(db.Model):
artist = db.StringProperty(required=True)
track = db.StringProperty(required=True)
index = db.IntegerProperty(required=True)
playlist = db.StringProperty(required=True)
create_date = db.DateTimeProperty(required=True)
charted = db.BooleanProperty(required=True,default=False)
class PlaylistHeader(db.Model):
title = db.StringProperty(required=True)
url= db.StringProperty(required=True)
playlist = db.StringProperty(required=True)
songs = db.StringProperty(required=True)
create_date = db.DateTimeProperty(required=True)
class PlaygrubAccount(db.Model):
service = db.StringProperty()
user = db.StringProperty()
password = db.StringProperty()
class PlaygrubChartEntry(db.Model):
artist = db.StringProperty(required=True)
track = db.StringProperty(required=True)
score = db.FloatProperty(required=True)