This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
218 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Generated by Django 2.0.7 on 2019-11-30 01:58 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Sign', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=100, verbose_name='贴吧名')), | ||
('fid', models.CharField(max_length=20, verbose_name='贴吧id')), | ||
('is_sign', models.BooleanField(default=False, verbose_name='是否签到')), | ||
('ststus', models.CharField(default='', max_length=100, verbose_name='签到状态')), | ||
('retry_times', models.SmallIntegerField(default=0, verbose_name='重试次数')), | ||
], | ||
options={ | ||
'verbose_name': '签到', | ||
'verbose_name_plural': '签到', | ||
'db_table': 'sign', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='SignLog', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=100, verbose_name='贴吧名')), | ||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='提交时间')), | ||
('ret_log', models.TextField(verbose_name='签到日志')), | ||
], | ||
options={ | ||
'verbose_name': '签到日志', | ||
'verbose_name_plural': '签到日志', | ||
'db_table': 'sign_log', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='User', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('bduss', models.CharField(max_length=192, verbose_name='BDUSS')), | ||
('username', models.CharField(editable=False, max_length=30, unique=True, verbose_name='贴吧用户名')), | ||
('token', models.CharField(editable=False, max_length=200, unique=True, verbose_name='个人TOKEN')), | ||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='提交时间')), | ||
('flag', models.IntegerField(default=0, null=True, verbose_name='新用户')), | ||
], | ||
options={ | ||
'verbose_name': '用户', | ||
'verbose_name_plural': '用户', | ||
'db_table': 'user', | ||
'ordering': ['created_time'], | ||
'get_latest_by': 'created_time', | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name='signlog', | ||
name='user', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='SignIn.User', verbose_name='所属用户'), | ||
), | ||
migrations.AddField( | ||
model_name='sign', | ||
name='user', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='SignIn.User', verbose_name='所属用户'), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='sign', | ||
unique_together={('name', 'fid', 'user')}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 2.0.7 on 2019-11-30 02:27 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('SignIn', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='sign', | ||
old_name='ststus', | ||
new_name='status', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.