Skip to content

Commit

Permalink
fix: oops, forgot migration
Browse files Browse the repository at this point in the history
  • Loading branch information
vas3k committed Nov 11, 2024
1 parent e45ca6a commit b100511
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions rooms/migrations/0004_roommuted_roomsubscription.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Generated by Django 3.2.13 on 2024-11-11 18:12

from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

dependencies = [
('rooms', '0003_auto_20230925_1239'),
]

operations = [
migrations.CreateModel(
name='RoomSubscription',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('created_at', models.DateTimeField(auto_now_add=True)),
('room', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='subscriptions', to='rooms.room')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='room_subscriptions', to='users.user')),
],
options={
'db_table': 'room_subscriptions',
},
),
migrations.CreateModel(
name='RoomMuted',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('created_at', models.DateTimeField(auto_now_add=True)),
('room', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='muted_users', to='rooms.room')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='muted_room', to='users.user')),
],
options={
'db_table': 'room_muted',
'unique_together': {('user', 'room')},
},
),
]

0 comments on commit b100511

Please sign in to comment.