added simple model setup for django tweetbot;

This commit is contained in:
Marco Zeisler 2021-04-30 16:06:35 +02:00
parent f57a0cb5ea
commit 907788ffa7

View File

@ -1,3 +1,15 @@
from django.db import models from django.db import models
# Create your models here. # Create your models here.
class User(models.Model):
...
class Tweet(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
class Feed(models.Model):
url = models.CharField(max_length=100)
active = models.BooleanField()
class FeedEntry(models.Model):
tweeted = models.BooleanField()