Commit 63052b51 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by root

Migrations pour voip et digicode

parent 7e7ab154
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-24 15:52
from __future__ import unicode_literals
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Code',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('digits', models.PositiveIntegerField(unique=True, validators=[django.core.validators.MaxValueValidator(999999)])),
('date', models.DateTimeField(default=django.utils.timezone.now)),
('owner', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'ordering': ['-date'],
},
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-24 15:53
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0008_alter_user_username_max_length'),
]
operations = [
migrations.CreateModel(
name='Call',
fields=[
('uniq_id', models.CharField(max_length=80, primary_key=True, serialize=False, verbose_name="Identifiant de l'appel")),
('src', models.CharField(max_length=80, verbose_name='Num\xe9ro appelant')),
('dst', models.CharField(max_length=80, verbose_name='Num\xe9ro appelant')),
('duration', models.IntegerField(blank=True, null=True, verbose_name="Dur\xe9e de l'appel")),
('date', models.DateField(verbose_name="Date d'initiation de l'appel")),
],
options={
'db_table': 'voip_history',
'verbose_name': 'Appel archiv\xe9',
'verbose_name_plural': 'Appels archiv\xe9s',
},
),
migrations.CreateModel(
name='Profile',
fields=[
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)),
('password', models.CharField(max_length=32, verbose_name='Mot de passe')),
('published', models.BooleanField(default=False, help_text="Affichage du num\xe9ro et du nom dans l'annuaire du Crans", verbose_name="Publication dans l'annuaire")),
('caller_id', models.CharField(choices=[(b'full_name', 'Nom complet'), (b'number', 'Num\xe9ro de T\xe9l\xe9phone'), (b'both', 'Nom et num\xe9ro de t\xe9l\xe9phone')], help_text="Nom \xe0 afficher lors d'un appel", max_length=9, verbose_name="Affichage de l'appelant")),
('num', models.CharField(max_length=10, verbose_name='Num\xe9ro de t\xe9l\xe9phone')),
('voicemail_password', models.CharField(max_length=6, verbose_name='Mot de passe bo\xeete vocale')),
],
options={
'verbose_name': 'Profil SIP',
'verbose_name_plural': 'Profils SIP',
},
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment