-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path0001_initial.py
40 lines (34 loc) · 1.22 KB
/
0001_initial.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Generated by Django 4.1.8 on 2023-04-27 06:04
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Image',
fields=[
('id', models.IntegerField(primary_key=True, serialize=False)),
('nameofimage', models.CharField(max_length=50)),
('photo', models.ImageField(upload_to='store')),
],
options={
'db_table': 'table',
},
),
migrations.CreateModel(
name='MyModel',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('image_url', models.FileField(upload_to='uploads/')),
],
),
migrations.CreateModel(
name='User_Profile',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('fname', models.CharField(max_length=200)),
('display_picture', models.FileField(upload_to='')),
],
),
]