"Fossies" - the Fresh Open Source Software Archive

Member "seahub-7.1.0-pro/seahub/notifications/migrations/0001_initial.py" (30 Dec 2019, 1334 Bytes) of package /linux/www/seahub-7.1.0-pro.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # -*- coding: utf-8 -*-
    2 # Generated by Django 1.11.11 on 2018-03-21 08:43
    3 
    4 
    5 import datetime
    6 from django.db import migrations, models
    7 import seahub.base.fields
    8 
    9 
   10 class Migration(migrations.Migration):
   11 
   12     initial = True
   13 
   14     dependencies = [
   15     ]
   16 
   17     operations = [
   18         migrations.CreateModel(
   19             name='Notification',
   20             fields=[
   21                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   22                 ('message', models.CharField(max_length=512)),
   23                 ('primary', models.BooleanField(default=False)),
   24             ],
   25         ),
   26         migrations.CreateModel(
   27             name='UserNotification',
   28             fields=[
   29                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   30                 ('to_user', seahub.base.fields.LowerCaseCharField(db_index=True, max_length=255)),
   31                 ('msg_type', models.CharField(db_index=True, max_length=30)),
   32                 ('detail', models.TextField()),
   33                 ('timestamp', models.DateTimeField(default=datetime.datetime.now)),
   34                 ('seen', models.BooleanField(default=False, verbose_name=b'seen')),
   35             ],
   36             options={
   37                 'ordering': ['-timestamp'],
   38             },
   39         ),
   40     ]