class Migration(migrations.Migration): dependencies = [ ('adminapp', '0007_auto_20200525_1046'), ] operations = [ migrations.AlterField( model_name='workingtime', name='end_hour', field=models.CharField(help_text='Please use the following format: <em>hh:mm</em>.', max_length=5, validators=[adminapp.models.validate_hhmm_format], verbose_name='Final hour'), ), migrations.AlterField( model_name='workingtime', name='ini_hour', field=models.CharField(help_text='Please use the following format: <em>hh:mm</em>.', max_length=5, validators=[adminapp.models.validate_hhmm_format], verbose_name='Initial hour'), ), migrations.AlterField( model_name='workingtime', name='type', field=models.CharField(choices=[('NO', 'Normal'), ('ID', 'Interday scheduling'), ('M2', 'More than 24 hours')], default='NO', max_length=2, verbose_name='Type of WT'), ), ]
class Migration(migrations.Migration): dependencies = [ ('adminapp', '0006_auto_20200522_1533'), ] operations = [ migrations.AlterField( model_name='workingtime', name='description', field=models.CharField(blank=True, max_length=200, null=True, verbose_name='Working time description'), ), migrations.AlterField( model_name='workingtime', name='end_hour', field=models.CharField(help_text='Please use the following format: <em>hh:mm</em>.', max_length=5, validators=[django.core.validators.MinLengthValidator(5, 'Too short'), adminapp.models.validate_hhmm_format]), ), migrations.AlterField( model_name='workingtime', name='ini_hour', field=models.CharField(help_text='Please use the following format: <em>hh:mm</em>.', max_length=5), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='CategoryCourse', fields=[ ('_id', djongo.models.fields.ObjectIdField(auto_created=True, primary_key=True, serialize=False)), ('namecourse', models.CharField(max_length=400)), ('subcourse', djongo.models.fields.ArrayModelField( blank=True, model_container=adminapp.models.SubCateCourse, model_form_class=adminapp.models.SubCateCourseForm)), ('createdate', models.DateField(default=django.utils.timezone.now)), ('status', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='Course', fields=[ ('_id', djongo.models.fields.ObjectIdField(auto_created=True, primary_key=True, serialize=False)), ('namecourse', models.CharField(max_length=400)), ('startdate', models.DateField(default=django.utils.timezone.now)), ('enddate', models.DateField(default=django.utils.timezone.now)), ('imagecourse', models.ImageField( default= '/Users/oh/Desktop/djangoCourse/media/account/identicon.png', upload_to='course/%Y/%m/%d/')), ('teacher', djongo.models.fields.EmbeddedModelField( model_container=adminapp.models.Teacher, model_form_class=adminapp.models.TeacherForm, null=True)), ('coursecode', models.CharField(max_length=100)), ('categorycourse', models.CharField(blank=True, max_length=300)), ('createdate', models.DateField(default=django.utils.timezone.now)), ('status', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='EvaluateCommentUsers', fields=[ ('_id', djongo.models.fields.ObjectIdField(auto_created=True, primary_key=True, serialize=False)), ('userscomment', models.CharField(max_length=300)), ('rolecomment', models.CharField(max_length=300)), ('coursecomment', models.CharField(max_length=500)), ('contentcomment', models.TextField(max_length=800)), ], ), migrations.CreateModel( name='Student', fields=[ ('_id', djongo.models.fields.ObjectIdField(auto_created=True, primary_key=True, serialize=False)), ('fullname', models.CharField(max_length=300)), ('hometown', models.TextField()), ('birthday', models.DateField(default=django.utils.timezone.now)), ('school', models.TextField()), ('graduationtime', models.DateField(default=django.utils.timezone.now)), ('face', models.ImageField(default='', upload_to='student/%Y/%m/%d/')), ('email', models.EmailField(max_length=450)), ('phone', models.CharField(max_length=100)), ('coursecode', models.CharField(blank=True, max_length=100)), ('studentcode', models.CharField(blank=True, max_length=200)), ('accountcode', models.CharField(blank=True, max_length=200)), ('createdate', models.DateTimeField(default=django.utils.timezone.now)), ('status', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='UploadFileUsers', fields=[ ('_id', djongo.models.fields.ObjectIdField(auto_created=True, primary_key=True, serialize=False)), ('name', models.CharField(max_length=600)), ('usersupload', models.CharField(max_length=300)), ('coursecode', models.CharField(max_length=500)), ('contentfile', models.FileField( default= '/Users/oh/Desktop/djangoCourse/media/account/identicon.png', upload_to='files/%Y/%m/%d/')), ('comment', models.TextField(max_length=900)), ('created', models.DateField(default=django.utils.timezone.now)), ], ), migrations.AddField( model_name='course', name='student', field=djongo.models.fields.ArrayReferenceField( on_delete=django.db.models.deletion.CASCADE, to='adminapp.Student'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Users', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('address', models.TextField(null=True)), ('avatar', models.FileField( null=True, upload_to='avatar/', validators=[ django.core.validators.FileExtensionValidator( allowed_extensions=['jpg', 'png', 'svg']) ])), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'db_table': 'users', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='BuildingComponents', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.TextField(blank=True, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ], options={ 'db_table': 'building_components', }, ), migrations.CreateModel( name='Buildings', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number', models.CharField(max_length=10)), ('description', models.TextField(blank=True, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('created_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='building_created_by', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'buildings', }, ), migrations.CreateModel( name='Flats', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number', models.CharField(max_length=10)), ('description', models.TextField(blank=True, null=True)), ('client_name', models.CharField(blank=True, max_length=100, null=True)), ('client_address', models.CharField(blank=True, max_length=150, null=True)), ('client_email', models.CharField(blank=True, max_length=50, null=True)), ('client_tel', models.CharField(blank=True, max_length=50, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('building', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='adminapp.Buildings')), ('created_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='flat_created_by', to=settings.AUTH_USER_MODEL)), ('updated_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='flat_last_updated_by', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'flats', }, ), migrations.CreateModel( name='Notification', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('type', adminapp.models.NotificationType(choices=[ ('edit_task', 'Edit Task'), ('assign_worker', 'Assign Worker'), ('task_done', 'Task Done'), ('task_pending', 'Task Pending'), ('task_comment', 'Task Comment'), ('attach_file', 'Attach File'), ('change_due_date', 'Change Due Date') ], max_length=20)), ('text', models.TextField()), ('created_at', models.DateTimeField(auto_now_add=True)), ], options={ 'db_table': 'notification', }, ), migrations.CreateModel( name='Projects', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('address', models.CharField(blank=True, max_length=200, null=True)), ('description', models.TextField(blank=True, null=True)), ('city', models.CharField(blank=True, max_length=100, null=True)), ('type', models.CharField(blank=True, max_length=100, null=True)), ('energetic_standard', models.CharField(blank=True, max_length=100, null=True)), ('start_date', models.DateField(blank=True, null=True)), ('end_date', models.DateField(blank=True, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('created_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='project_created_by', to=settings.AUTH_USER_MODEL)), ('updated_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='project_last_updated_by', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'projects', }, ), migrations.CreateModel( name='Tasks', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('followers', django_mysql.models.JSONField(default=dict)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('assign_to', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='task_assign_to', to=settings.AUTH_USER_MODEL)), ('assigned_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='task_assigned_by', to=settings.AUTH_USER_MODEL)), ('building_component', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='adminapp.BuildingComponents')), ('created_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='task_created_by', to=settings.AUTH_USER_MODEL)), ('updated_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='task_last_updated_by', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'tasks', }, ), migrations.CreateModel( name='ResetPassword', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('hash_code', models.CharField(max_length=200)), ('already_used', models.BooleanField(default=False)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'reset_password', }, ), migrations.CreateModel( name='QrCode', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('unique_key', models.CharField(max_length=50)), ('created_at', models.DateTimeField(auto_now_add=True)), ('building', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='adminapp.Buildings')), ('created_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='qr_created_by', to=settings.AUTH_USER_MODEL)), ('flat', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='adminapp.Flats')), ], options={ 'db_table': 'qr_code', }, ), migrations.CreateModel( name='ProjectStuff', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('created_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='project_assigned_by', to=settings.AUTH_USER_MODEL)), ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='adminapp.Projects')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'project_stuff', }, ), migrations.CreateModel( name='NotificationStatus', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.BooleanField(default=False)), ('notification', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='adminapp.Notification')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'notification_status', }, ), migrations.AddField( model_name='notification', name='task', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='adminapp.Tasks'), ), migrations.CreateModel( name='HandWorker', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('company_name', models.CharField(max_length=100)), ('address', models.CharField(blank=True, max_length=200, null=True)), ('email', models.CharField(blank=True, max_length=50, null=True)), ('telephone', models.CharField(blank=True, max_length=50, null=True)), ('working_type', django_mysql.models.JSONField(default=dict)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'handworker', }, ), migrations.CreateModel( name='FlatPlans', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('plan_file', models.FileField( null=True, upload_to='flat/plan_pdf/', validators=[ django.core.validators.FileExtensionValidator( allowed_extensions=['pdf', 'jpg']) ])), ('created_at', models.DateTimeField(auto_now_add=True)), ('created_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='flat_plan_created_by', to=settings.AUTH_USER_MODEL)), ('flat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='adminapp.Flats')), ], options={ 'db_table': 'flat_plans', }, ), migrations.CreateModel( name='Components', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('static_description', models.TextField(blank=True, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('created_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='component_created_by', to=settings.AUTH_USER_MODEL)), ('parent', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='parent_component', to='adminapp.Components')), ('updated_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='component_last_updated_by', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'components', }, ), migrations.CreateModel( name='Comments', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField()), ('type', adminapp.models.CommentType(choices=[('text', 'Text'), ('file', 'File')], default='text', max_length=10)), ('file_type', models.CharField(blank=True, max_length=50, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('task', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='adminapp.Tasks')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'comments', }, ), migrations.AddField( model_name='buildings', name='project', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='adminapp.Projects'), ), migrations.AddField( model_name='buildings', name='updated_by', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='building_last_updated_by', to=settings.AUTH_USER_MODEL), ), migrations.CreateModel( name='BuildingPlans', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('plan_file', models.FileField( null=True, upload_to='building/plan_pdf/', validators=[ django.core.validators.FileExtensionValidator( allowed_extensions=['pdf', 'jpg']) ])), ('created_at', models.DateTimeField(auto_now_add=True)), ('building', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='adminapp.Buildings')), ('created_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='building_plan_created_by', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'building_plans', }, ), migrations.AddField( model_name='buildingcomponents', name='building', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='adminapp.Buildings'), ), migrations.AddField( model_name='buildingcomponents', name='component', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='adminapp.Components'), ), migrations.AddField( model_name='buildingcomponents', name='created_by', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='building_component_created_by', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='buildingcomponents', name='flat', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to='adminapp.Flats'), ), migrations.AddField( model_name='buildingcomponents', name='updated_by', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='building_component_last_updated_by', to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Categorie', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nom', models.CharField(max_length=250)), ('description', models.TextField()), ('image', models.ImageField(upload_to='categorie/%Y/%m/%d/')), ('date_add', models.DateTimeField(auto_now_add=True)), ('date_upd', models.DateTimeField(auto_now=True)), ('status', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='Tague', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nom', models.CharField(max_length=250)), ('status', models.BooleanField(default=False)), ('date_add', models.DateTimeField(auto_now_add=True)), ('date_upd', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='SousCategrorie', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nom', models.CharField(max_length=250)), ('image', models.ImageField(upload_to='souscategorie/%Y/%m/%d/')), ('date_add', models.DateTimeField(auto_now_add=True)), ('date_upd', models.DateTimeField(auto_now=True)), ('status', models.BooleanField(default=False)), ('categorie_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='categorie', to='adminapp.Categorie')), ], ), migrations.CreateModel( name='Produit', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('titre', models.CharField(max_length=250)), ('description', models.TextField()), ('image', models.ImageField(upload_to='produit/%Y/%m/%d/')), ('taille', django.contrib.postgres.fields.ArrayField( base_field=models.CharField(blank=True, max_length=10, null=True), default=adminapp.models.default_thing, size=None)), ('family', django.contrib.postgres.fields.jsonb.JSONField()), ('prix', django.contrib.postgres.fields.ranges.IntegerRangeField()), ('date_add', models.DateTimeField(auto_now_add=True)), ('date_upd', models.DateTimeField(auto_now=True)), ('status', models.BooleanField(default=False)), ('souscategorie', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='produit_souscategorie', to='adminapp.SousCategrorie')), ('tague', models.ManyToManyField(related_name='produit_tag', to='adminapp.Tague')), ], ), ]