# coding=utf8
from __future__ import unicode_literals, absolute_import, print_function

from django.db import models
from django.db.models import Q
from django.utils.html import strip_tags

from .types import TAG_TYPE
from .types import ACHE_LEVEL, ANESTHESIA_TYPE
from .bodypartsubitem import BodyPartSubItem
from .tag import Tag
from api.models import SURGICAL_GRADE_CHOICES
from api.models import TREATMENT_MEANS_CHOICES
from api.models import WIKI_HOSPITAL_TREATMENT_CHOICES
from api.models import WIKI_COMPLEXITY_TYPE
from api.models import WIKI_RISK_FACTOR_TYPE
from api.models import OPTIMIZE_WIKI_TYPE
from api.models import SLIDE_TYPE
from api.models import WIKI_LEVEL
from relation.models import UserTagRelation
from gm_upload import IMG_TYPE, ImgUrlField

import datetime

# class NewItemWiki(models.Model):
#
#     class Meta:
#         verbose_name = u'百科项目'
#         verbose_name_plural = u'百科项目'
#         db_table = 'wiki_item'
#
#     name = models.CharField(u'项目名称', max_length=30)
#     other_name = models.CharField(u'别名', max_length=200, blank=True, default='')
#     description = models.TextField(u'项目描述', blank=True)
#     is_online = models.BooleanField(u'是否上线', default=False, help_text=u"是否上线")
#     create_time = models.DateTimeField(verbose_name=u'创建时间',default=datetime.datetime.fromtimestamp(0))
#
#
# class CollectWiki(models.Model):
#
#     class Meta:
#         verbose_name = u'关联百科（wiki）'
#         verbose_name_plural = u'关联百科 (wiki)'
#         db_table = 'wiki_collect'
#
#     name = models.CharField(u'项目名称', max_length=30)
#     description = models.TextField(u'项目描述', blank=True)
#     is_online = models.BooleanField(u'是否上线', default=False, help_text=u"是否上线")
#     create_time = models.DateTimeField(verbose_name=u'创建时间',default=datetime.datetime.fromtimestamp(0))
#     #wikitype = models.CharField(u'百科类型', max_length=30)
#
#
# class BrandWiki(models.Model):
#
#     class Meta:
#         verbose_name = u'百科品牌（wiki）'
#         verbose_name_plural = u'百科品牌 (wiki)'
#         db_table = 'wiki_brand'
#
#     name = models.CharField(u'项目名称', max_length=30)
#     description = models.TextField(u'项目描述', blank=True)
#     is_online = models.BooleanField(u'是否上线', default=False, help_text=u"是否上线")
#     create_time = models.DateTimeField(verbose_name=u'创建时间',default=datetime.datetime.fromtimestamp(0))
#
#
# class ProductWiki(models.Model):
#
#     class Meta:
#         verbose_name = u'百科产品'
#         verbose_name_plural = u'百科产品'
#         db_table = 'wiki_product'
#
#     name = models.CharField(u'项目名称', max_length=30)
#     description = models.TextField(u'项目描述', blank=True)
#     is_online = models.BooleanField(u'是否上线', default=False, help_text=u"是否上线")
#     create_time = models.DateTimeField(verbose_name=u'创建时间',default=datetime.datetime.fromtimestamp(0))

