Integrated my history into data

This commit is contained in:
Karthik Pullela
2018-01-21 10:46:18 -08:00
parent bce29a723f
commit 97d35e633c
917 changed files with 50890 additions and 11 deletions
@@ -0,0 +1,122 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
from social_core.utils import setting_name
from ..fields import JSONField
from ..storage import DjangoAssociationMixin, DjangoCodeMixin, \
DjangoNonceMixin, DjangoUserMixin
USER_MODEL = getattr(settings, setting_name('USER_MODEL'), None) or \
getattr(settings, 'AUTH_USER_MODEL', None) or \
'auth.User'
UID_LENGTH = getattr(settings, setting_name('UID_LENGTH'), 255)
NONCE_SERVER_URL_LENGTH = getattr(
settings, setting_name('NONCE_SERVER_URL_LENGTH'), 255
)
ASSOCIATION_SERVER_URL_LENGTH = getattr(
settings, setting_name('ASSOCIATION_SERVER_URL_LENGTH'), 255
)
ASSOCIATION_HANDLE_LENGTH = getattr(
settings, setting_name('ASSOCIATION_HANDLE_LENGTH'), 255
)
class Migration(migrations.Migration):
replaces = [
('default', '0001_initial'),
('social_auth', '0001_initial')
]
dependencies = [
migrations.swappable_dependency(USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Association',
fields=[
('id', models.AutoField(
verbose_name='ID', serialize=False, auto_created=True,
primary_key=True)),
('server_url',
models.CharField(max_length=ASSOCIATION_SERVER_URL_LENGTH)),
('handle',
models.CharField(max_length=ASSOCIATION_HANDLE_LENGTH)),
('secret', models.CharField(max_length=255)),
('issued', models.IntegerField()),
('lifetime', models.IntegerField()),
('assoc_type', models.CharField(max_length=64)),
],
options={
'db_table': 'social_auth_association',
},
bases=(
models.Model, DjangoAssociationMixin
),
),
migrations.CreateModel(
name='Code',
fields=[
('id', models.AutoField(
verbose_name='ID', serialize=False, auto_created=True,
primary_key=True)),
('email', models.EmailField(max_length=75)),
('code', models.CharField(max_length=32, db_index=True)),
('verified', models.BooleanField(default=False)),
],
options={
'db_table': 'social_auth_code',
},
bases=(models.Model, DjangoCodeMixin),
),
migrations.CreateModel(
name='Nonce',
fields=[
('id', models.AutoField(
verbose_name='ID', serialize=False, auto_created=True,
primary_key=True
)),
('server_url',
models.CharField(max_length=NONCE_SERVER_URL_LENGTH)),
('timestamp', models.IntegerField()),
('salt', models.CharField(max_length=65)),
],
options={
'db_table': 'social_auth_nonce',
},
bases=(models.Model, DjangoNonceMixin),
),
migrations.CreateModel(
name='UserSocialAuth',
fields=[
('id', models.AutoField(
verbose_name='ID', serialize=False, auto_created=True,
primary_key=True)),
('provider', models.CharField(max_length=32)),
('uid', models.CharField(max_length=UID_LENGTH)),
('extra_data', JSONField(default='{}')),
('user', models.ForeignKey(
related_name='social_auth', to=USER_MODEL, on_delete=models.CASCADE)),
],
options={
'db_table': 'social_auth_usersocialauth',
},
bases=(models.Model, DjangoUserMixin),
),
migrations.AlterUniqueTogether(
name='usersocialauth',
unique_together={('provider', 'uid')},
),
migrations.AlterUniqueTogether(
name='code',
unique_together={('email', 'code')},
),
migrations.AlterUniqueTogether(
name='nonce',
unique_together={('server_url', 'timestamp', 'salt')},
),
]
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
from social_core.utils import setting_name
USER_MODEL = getattr(settings, setting_name('USER_MODEL'), None) or \
getattr(settings, 'AUTH_USER_MODEL', None) or \
'auth.User'
class Migration(migrations.Migration):
replaces = [
('default', '0002_add_related_name'),
('social_auth', '0002_add_related_name')
]
dependencies = [
('social_django', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='usersocialauth',
name='user',
field=models.ForeignKey(
related_name='social_auth', to=USER_MODEL, on_delete=models.CASCADE,
)
),
]
@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.db import models, migrations
from social_core.utils import setting_name
EMAIL_LENGTH = getattr(settings, setting_name('EMAIL_LENGTH'), 254)
class Migration(migrations.Migration):
replaces = [
('default', '0003_alter_email_max_length'),
('social_auth', '0003_alter_email_max_length')
]
dependencies = [
('social_django', '0002_add_related_name'),
]
operations = [
migrations.AlterField(
model_name='code',
name='email',
field=models.EmailField(max_length=EMAIL_LENGTH),
),
]
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from ..fields import JSONField
class Migration(migrations.Migration):
replaces = [
('default', '0004_auto_20160423_0400'),
('social_auth', '0004_auto_20160423_0400')
]
dependencies = [
('social_django', '0003_alter_email_max_length'),
]
operations = [
migrations.AlterField(
model_name='usersocialauth',
name='extra_data',
field=JSONField(default=dict),
)
]
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-07-28 02:33
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
replaces = [
('social_auth', '0005_auto_20160727_2333')
]
dependencies = [
('social_django', '0004_auto_20160423_0400'),
]
operations = [
migrations.AlterUniqueTogether(
name='association',
unique_together=set([('server_url', 'handle')]),
),
]
@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-02 11:54
from __future__ import unicode_literals
from django.db import migrations, models
import social_django.fields
import social_django.storage
class Migration(migrations.Migration):
dependencies = [
('social_django', '0005_auto_20160727_2333'),
]
operations = [
migrations.CreateModel(
name='Partial',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('token', models.CharField(db_index=True, max_length=32)),
('next_step', models.PositiveSmallIntegerField(default=0)),
('backend', models.CharField(max_length=32)),
('data', social_django.fields.JSONField(default=dict)),
],
options={
'db_table': 'social_auth_partial',
},
bases=(models.Model, social_django.storage.DjangoPartialMixin),
),
]
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-08 06:54
from __future__ import unicode_literals
from django.db import migrations, models
from django.utils import timezone
class Migration(migrations.Migration):
dependencies = [
('social_django', '0006_partial'),
]
operations = [
migrations.AddField(
model_name='code',
name='timestamp',
field=models.DateTimeField(auto_now_add=True,
db_index=True,
default=timezone.now),
preserve_default=False
),
]
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-08 06:57
from __future__ import unicode_literals
from django.db import migrations, models
from django.utils import timezone
class Migration(migrations.Migration):
dependencies = [
('social_django', '0007_code_timestamp'),
]
operations = [
migrations.AddField(
model_name='partial',
name='timestamp',
field=models.DateTimeField(auto_now_add=True,
db_index=True,
default=timezone.now),
preserve_default=False,
),
]