first commit
This commit is contained in:
65
socials/migrations/0001_initial.py
Normal file
65
socials/migrations/0001_initial.py
Normal file
@@ -0,0 +1,65 @@
|
||||
# Generated by Django 5.1.1 on 2024-12-04 05:42
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Faq',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('question', models.CharField(max_length=516)),
|
||||
('post', models.TextField()),
|
||||
('seq_num', models.SmallIntegerField()),
|
||||
('published', models.BooleanField(default=False)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'FAQs',
|
||||
'ordering': ['seq_num'],
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='SocialPost',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('title', models.CharField(max_length=64)),
|
||||
('post', models.TextField()),
|
||||
('created_at', models.DateField(auto_now=True)),
|
||||
('author', models.CharField(blank=True, max_length=64, null=True)),
|
||||
('published', models.BooleanField(default=False)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Social Posts',
|
||||
'ordering': ['created_at', 'title'],
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='SocialLink',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('cid', models.CharField(blank=True, max_length=255, null=True)),
|
||||
('uri', models.URLField()),
|
||||
('text', models.CharField(blank=True, max_length=515, null=True)),
|
||||
('text_link', models.URLField(blank=True, null=True)),
|
||||
('handle', models.CharField(blank=True, max_length=63, null=True)),
|
||||
('likes', models.IntegerField()),
|
||||
('reposts', models.IntegerField()),
|
||||
('quotes', models.IntegerField()),
|
||||
('replies', models.IntegerField()),
|
||||
('more_details', models.JSONField(blank=True, null=True)),
|
||||
('created_at', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Events',
|
||||
'ordering': ['created_at'],
|
||||
'unique_together': {('uri',)},
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user