storage yaratildi
This commit is contained in:
33
core/apps/storage/migrations/0001_initial.py
Normal file
33
core/apps/storage/migrations/0001_initial.py
Normal file
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 5.2.7 on 2026-03-12 10:36
|
||||
|
||||
import uuid
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='FileuploadModel',
|
||||
fields=[
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('file', models.FileField(upload_to='uploads/', verbose_name='file')),
|
||||
('original_name', models.CharField(max_length=255, verbose_name='original name')),
|
||||
('bucket', models.CharField(default='uploads', max_length=100, verbose_name='bucket')),
|
||||
('content_type', models.CharField(blank=True, max_length=100, null=True, verbose_name='content type')),
|
||||
('file_size', models.BigIntegerField(blank=True, null=True, verbose_name='file size')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'File Upload',
|
||||
'verbose_name_plural': 'File Uploads',
|
||||
'db_table': 'file_uploads',
|
||||
},
|
||||
),
|
||||
]
|
||||
0
core/apps/storage/migrations/__init__.py
Normal file
0
core/apps/storage/migrations/__init__.py
Normal file
Reference in New Issue
Block a user