mirror of
https://github.com/lemeow125/Ivy-Backend.git
synced 2025-06-29 00:55:42 +08:00
Added products model
This commit is contained in:
parent
62237c9a3c
commit
d98c88482d
14 changed files with 98 additions and 3 deletions
24
ivy/products/migrations/0001_initial.py
Normal file
24
ivy/products/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Generated by Django 4.1.7 on 2023-03-05 13:54
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.utils.timezone
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Product',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=20)),
|
||||
('quantity', models.IntegerField(default=0)),
|
||||
('date_added', models.DateTimeField(default=django.utils.timezone.now, editable=False)),
|
||||
],
|
||||
),
|
||||
]
|
0
ivy/products/migrations/__init__.py
Normal file
0
ivy/products/migrations/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue