mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
33 lines
1.3 KiB
Python
33 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.12 on 2018-04-22 11:53
|
|
from __future__ import unicode_literals
|
|
|
|
import company.models
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Company',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(help_text='Company naem', max_length=100, unique=True)),
|
|
('description', models.CharField(max_length=500)),
|
|
('website', models.URLField(blank=True, help_text='Company website URL')),
|
|
('address', models.CharField(blank=True, help_text='Company address', max_length=200)),
|
|
('phone', models.CharField(blank=True, max_length=50)),
|
|
('email', models.EmailField(blank=True, max_length=254)),
|
|
('contact', models.CharField(blank=True, max_length=100)),
|
|
('image', models.ImageField(blank=True, max_length=255, null=True, upload_to=company.models.rename_company_image)),
|
|
('notes', models.TextField(blank=True)),
|
|
],
|
|
),
|
|
]
|