first commit

This commit is contained in:
javad committed 2026-06-15 10:57:28 +03:30
commit 3e4574dcdd
163 files changed
+3559

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
# Generated by Django 4.2.1 on 2024-03-27 19:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('product', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Order',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('name', models.CharField(max_length=30)),
('desc', models.CharField(blank=True, max_length=30, null=True)),
('price', models.PositiveIntegerField(blank=True, null=True)),
('emtiyaz', models.PositiveIntegerField()),
('cuser_mojri', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
('product', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='product.product')),
],
options={
'abstract': False,
},
),
]
+18
View File
@@ -0,0 +1,18 @@
# Generated by Django 4.2.1 on 2024-04-28 07:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('order', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='order',
name='code',
field=models.TextField(blank=True, null=True),
),
]
@@ -0,0 +1,18 @@
# Generated by Django 4.2.1 on 2024-04-28 07:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('order', '0002_order_code'),
]
operations = [
migrations.AddField(
model_name='order',
name='status',
field=models.CharField(choices=[('waiting', 'در انتظار برسی'), ('approve', 'تایید شد'), ('canceled', 'رد شده')], default='waiting', max_length=30),
),
]
@@ -0,0 +1,17 @@
# Generated by Django 4.2.1 on 2024-04-30 05:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('order', '0003_order_status'),
]
operations = [
migrations.AlterModelOptions(
name='order',
options={'ordering': ['-created_at']},
),
]
View File
Whitespace-only changes.