mirror of
https://github.com/maubot/maubot
synced 2025-08-29 23:30:39 +00:00
Add rooms & pending invites to client page, with the options to leave a room and accept, ignore or reject an invite
This commit is contained in:
parent
3e8e034a5a
commit
007fcb1c02
12 changed files with 482 additions and 20 deletions
29
alembic/versions/fcb4ea0fce29_create_invite_table.py
Normal file
29
alembic/versions/fcb4ea0fce29_create_invite_table.py
Normal file
|
@ -0,0 +1,29 @@
|
|||
"""create invite table
|
||||
|
||||
Revision ID: fcb4ea0fce29
|
||||
Revises: 90aa88820eab
|
||||
Create Date: 2022-01-18 02:16:53.954662
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'fcb4ea0fce29'
|
||||
down_revision = '90aa88820eab'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.create_table('invite',
|
||||
sa.Column('client', sa.String(255), sa.ForeignKey("client.id", onupdate="CASCADE", ondelete="CASCADE"), primary_key=True),
|
||||
sa.Column('room', sa.String(255), nullable=False, primary_key=True),
|
||||
sa.Column('date', sa.DateTime(), nullable=False),
|
||||
sa.Column('inviter', sa.String(255), nullable=False)
|
||||
)
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_table('invite')
|
Loading…
Add table
Add a link
Reference in a new issue