# Generated by Django 4.0.6 on 2022-07-23 02:42
import ckeditor.fields
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),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('slug', models.SlugField()),
('description', models.TextField()),
],
options={
'verbose_name_plural': 'categories',
},
),
migrations.CreateModel(
name='Site',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('description', models.TextField()),
('logo', models.CharField(max_length=255)),
],
),
migrations.CreateModel(
name='Tag',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('slug', models.SlugField()),
('description', models.TextField()),
],
),
migrations.CreateModel(
name='Video',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=255)),
('slug', models.SlugField()),
('type', models.CharField(choices=[('YouTube', 'YouTube'), ('YouTubePL', 'YouTubePL'), ('Facebook', 'Facebook'), ('OK', 'OK'), ('Vimeo', 'Vimeo')], default='YouTube', max_length=255)),
('video_id', models.CharField(max_length=255)),
('status', models.CharField(choices=[('ending', 'ចប់\u200bហើយ'), ('continue', 'នៅ\u200bមាន\u200b\u200bត')], default='ending', max_length=255)),
('created_at', models.DateField(auto_now=True)),
],
options={
'ordering': ['-created_at'],
},
),
migrations.CreateModel(
name='Post',
fields=[
('id', models.CharField(default='ed2b4c8f39bf44aeaaf7a33285deef1d', editable=False, max_length=255, primary_key=True, serialize=False)),
('title', models.CharField(max_length=255)),
('slug', models.SlugField()),
('content', ckeditor.fields.RichTextField(blank=True)),
('featured_image', models.CharField(blank=True, max_length=255)),
('is_published', models.BooleanField(default=False)),
('is_featured', models.BooleanField(default=False)),
('created_at', models.DateField(auto_now=True)),
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
('category', models.ManyToManyField(to='multimedia.category')),
('tag', models.ManyToManyField(blank=True, to='multimedia.tag')),
('video', models.ManyToManyField(blank=True, to='multimedia.video')),
],
options={
'ordering': ['-created_at'],
},
),
]