first push

This commit is contained in:
2025-05-23 14:44:12 +08:00
commit abefd1b19b
817 changed files with 580289 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
# Generated by Django 3.2 on 2022-05-27 06:01
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('dashboard', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Upload',
fields=[
('status', models.IntegerField(default=1)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('created_by', models.IntegerField()),
('updated_by', models.IntegerField()),
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('entity_type', models.CharField(blank=True, max_length=255, null=True)),
('entity_id', models.IntegerField(blank=True, null=True)),
('filename', models.CharField(blank=True, max_length=255, null=True)),
('orignal_filename', models.CharField(blank=True, max_length=255, null=True)),
('notes', models.TextField(blank=True, null=True)),
('size', models.CharField(blank=True, max_length=255, null=True)),
('organization', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='dashboard.organization')),
],
options={
'abstract': False,
},
),
]
@@ -0,0 +1,33 @@
# Generated by Django 3.2 on 2022-12-13 07:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0015_delete_employee'),
('upload', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='upload',
name='created_by',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name='upload',
name='updated_by',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.CreateModel(
name='File',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('file', models.FileField(upload_to='files')),
('organization', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='dashboard.organization')),
],
),
]
@@ -0,0 +1,17 @@
# Generated by Django 3.2 on 2022-12-13 07:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('upload', '0002_auto_20221213_1306'),
]
operations = [
migrations.RemoveField(
model_name='file',
name='organization',
),
]
@@ -0,0 +1,18 @@
# Generated by Django 3.2 on 2023-01-04 09:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('upload', '0003_remove_file_organization'),
]
operations = [
migrations.AlterField(
model_name='upload',
name='status',
field=models.BooleanField(default=True),
),
]
View File