mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-08-03 09:44:26 +02:00
Add peer group model
This commit is contained in:
parent
c79c587945
commit
797058b29b
4 changed files with 64 additions and 1 deletions
24
wireguard/migrations/0023_peergroup.py
Normal file
24
wireguard/migrations/0023_peergroup.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Generated by Django 5.1.5 on 2025-01-20 12:39
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wireguard', '0022_alter_wireguardinstance_dns_primary'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='PeerGroup',
|
||||
fields=[
|
||||
('name', models.CharField(max_length=100, unique=True)),
|
||||
('created', models.DateTimeField(auto_now_add=True)),
|
||||
('updated', models.DateTimeField(auto_now=True)),
|
||||
('uuid', models.UUIDField(editable=False, primary_key=True, serialize=False)),
|
||||
('peer', models.ManyToManyField(blank=True, to='wireguard.peer')),
|
||||
('server_instance', models.ManyToManyField(blank=True, to='wireguard.wireguardinstance')),
|
||||
],
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue