added simple model setup for django tweetbot;
This commit is contained in:
parent
f57a0cb5ea
commit
907788ffa7
@ -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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user