mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-01 11:41:00 +00:00
19 lines
498 B
Python
19 lines
498 B
Python
from django.db import models
|
|
|
|
|
|
class Application(models.Model):
|
|
"""
|
|
OAuth applications
|
|
"""
|
|
|
|
client_id = models.CharField(max_length=500)
|
|
client_secret = models.CharField(max_length=500)
|
|
|
|
redirect_uris = models.TextField()
|
|
scopes = models.TextField()
|
|
|
|
name = models.CharField(max_length=500)
|
|
website = models.CharField(max_length=500, blank=True, null=True)
|
|
|
|
created = models.DateTimeField(auto_now_add=True)
|
|
updated = models.DateTimeField(auto_now=True)
|