You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
943 B

# Generated by Django 5.0.4 on 2024-05-22 13:20
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Medicine',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100, verbose_name='药品名称')),
('description', models.TextField(blank=True, null=True, verbose_name='药品描述')),
('price', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='价格')),
('stock', models.IntegerField(default=0, verbose_name='库存数量')),
],
options={
'verbose_name': '药品',
'verbose_name_plural': '药品',
},
),
]