mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-19 21:26:05 -05:00
MediaCMS backend, initial commit
This commit is contained in:
54
actions/migrations/0001_initial.py
Normal file
54
actions/migrations/0001_initial.py
Normal file
@@ -0,0 +1,54 @@
|
||||
# Generated by Django 3.1.4 on 2020-12-01 07:12
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = []
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="MediaAction",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
(
|
||||
"session_key",
|
||||
models.CharField(
|
||||
blank=True,
|
||||
db_index=True,
|
||||
help_text="for not logged in users",
|
||||
max_length=33,
|
||||
null=True,
|
||||
),
|
||||
),
|
||||
(
|
||||
"action",
|
||||
models.CharField(
|
||||
choices=[
|
||||
("like", "Like"),
|
||||
("dislike", "Dislike"),
|
||||
("watch", "Watch"),
|
||||
("report", "Report"),
|
||||
("rate", "Rate"),
|
||||
],
|
||||
default="watch",
|
||||
max_length=20,
|
||||
),
|
||||
),
|
||||
("extra_info", models.TextField(blank=True, null=True)),
|
||||
("action_date", models.DateTimeField(auto_now_add=True)),
|
||||
("remote_ip", models.CharField(blank=True, max_length=40, null=True)),
|
||||
],
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user