Use Docker, upgrade deps
This commit is contained in:
parent
16f8eb0470
commit
90f2fe1ced
18 changed files with 231 additions and 79 deletions
23
app/migrations/0001_initial.py
Normal file
23
app/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Link',
|
||||
fields=[
|
||||
('id', models.CharField(primary_key=True, max_length=12, serialize=False)),
|
||||
('url', models.URLField(max_length=2048)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('clicks', models.IntegerField(default=0)),
|
||||
('ip', models.GenericIPAddressField(null=True)),
|
||||
],
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue