diff --git a/apps/reviews/__init__.py b/apps/reviews/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/apps/reviews/models.py b/apps/reviews/models.py new file mode 100644 index 0000000000..7756da5b08 --- /dev/null +++ b/apps/reviews/models.py @@ -0,0 +1,18 @@ +from django.db import models + +import amo +from users.models import User + + +class Review(amo.LegacyModel): + + rating = models.IntegerField() + title = amo.TranslatedField() + body = amo.TranslatedField() + + version = models.ForeignKey('versions.Version') + user = models.ForeignKey(User) + reply_to = models.ForeignKey('self', db_column='reply_to') + + class Meta: + db_table = 'reviews'