toolshed/backend/files/migrations/0001_initial.py
jedi 46a6b4e3d4
All checks were successful
continuous-integration/drone/push Build is passing
add userfile module
2023-07-01 20:45:38 +02:00

26 lines
819 B
Python

# Generated by Django 4.2.2 on 2023-07-01 18:22
from django.db import migrations, models
import files.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='File',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('file', models.FileField(unique=True, upload_to=files.models.hash_upload)),
('mime_type', models.CharField(max_length=255)),
('hash', models.CharField(max_length=64, unique=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
],
),
]