-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from RustamovAkrom/main
Main
- Loading branch information
Showing
29 changed files
with
545 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,65 @@ | ||
# Generated by Django 5.1.1 on 2024-11-13 12:31 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Post', | ||
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)), | ||
('title', models.CharField(db_index=True, max_length=120, verbose_name='title')), | ||
('slug', models.SlugField(max_length=255, unique=True, verbose_name='slug')), | ||
('status', models.CharField(choices=[('df', 'Draft'), ('pb', 'Published')], default='df', max_length=2, verbose_name='status')), | ||
('description', models.CharField(blank=True, max_length=300, null=True, verbose_name='description')), | ||
('content', models.TextField(verbose_name='content')), | ||
('publisher_at', models.DateField(verbose_name='publisher at')), | ||
('is_active', models.BooleanField(default=True, verbose_name='active')), | ||
('watching', models.BigIntegerField(default=0, verbose_name='watching')), | ||
], | ||
options={ | ||
'verbose_name': 'Post', | ||
'verbose_name_plural': 'Posts', | ||
'db_table': 'posts', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='PostComment', | ||
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)), | ||
('message', models.TextField(verbose_name='message')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='PostCommentLike', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='PostDislike', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='PostLike', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
], | ||
), | ||
] | ||
# Generated by Django 5.1.1 on 2024-11-13 12:31 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Post', | ||
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)), | ||
('title', models.CharField(db_index=True, max_length=120, verbose_name='title')), | ||
('slug', models.SlugField(max_length=255, unique=True, verbose_name='slug')), | ||
('status', models.CharField(choices=[('df', 'Draft'), ('pb', 'Published')], default='df', max_length=2, verbose_name='status')), | ||
('description', models.CharField(blank=True, max_length=300, null=True, verbose_name='description')), | ||
('content', models.TextField(verbose_name='content')), | ||
('publisher_at', models.DateField(verbose_name='publisher at')), | ||
('is_active', models.BooleanField(default=True, verbose_name='active')), | ||
('watching', models.BigIntegerField(default=0, verbose_name='watching')), | ||
], | ||
options={ | ||
'verbose_name': 'Post', | ||
'verbose_name_plural': 'Posts', | ||
'db_table': 'posts', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='PostComment', | ||
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)), | ||
('message', models.TextField(verbose_name='message')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='PostCommentLike', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='PostDislike', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='PostLike', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.