<commit_before>from django.db import models

# Create your models here.<commit_msg>no message<commit_after>from django.db import models
from django.contrib.auth.models import User
# Create your models here.


class BandUser(models.Model):
    bu_user = models.OneToOneField(User)
    bu_band = models.IntegerField()
    bu_wechat_id = models.CharField(max_length=128)
    bu_gender = models.IntegerField() ##1 = male 2 = female
    bu_birthday = models.DateTimeField()
    bu_height = models.IntegerField() ##cm
    bu_weight = models.IntegerField() ##kg
    bu_follow = models.ManyToManyField(User, related_name='bu_follow')


class Step(models.Model):
    st_id = models.AutoField(primary_key=True, unique=True)
    st_user = models.ForeignKey(User, related_name='st_user')
    st_time = models.DateTimeField()
    st_step_number = models.IntegerField()
    st_calorie = models.IntegerField()


class TagContent(models.Model):
    tc_id = models.AutoField(primary_key=True, unique=True)
    tc_user = models.ForeignKey(User, related_name='tc_user')
    tc_content = models.CharField(max_length=128)


class Tag(models.Model):
    tg_id = models.AutoField(primary_key=True, unique=True)
    tg_user = models.ForeignKey(User, related_name='tg_user')
    tg_time_from = models.DateTimeField()
    tg_time_to = models.DateTimeField()
    tg_content = models.ForeignKey(User, related_name='tg_content')


class Plan(models.Model):
    pl_id = models.AutoField(primary_key=True, unique=True)
    pl_user = models.ForeignKey(User, related_name='pl_user')
    pl_time_from = models.DateTimeField()
    pl_time_to = models.DateTimeField()
    pl_time = models.TimeField()
    pl_goal = models.CharField(max_length=128)
    pl_description = models.TextField()


class Health(models.Model):
    he_id = models.AutoField(primary_key=True, unique=True)
    he_user = models.ForeignKey(User, related_name='he_user')
    he_time = models.DateTimeField()
    he_pressure = models.IntegerField()
    he_heart_rate = models.IntegerField()


class Sleep(models.Model):
    sl_id = models.AutoField(primary_key=True, unique=True)
    sl_user = models.ForeignKey(User, related_name='sl_user')
    sl_time_from = models.DateTimeField()
    sl_time_to = models.DateTimeField()
    sl_length = models.TimeField()
    sl_deep_length = models.TimeField()
{'fraction_non_alphanumeric': 0.11158798283261803, 'fraction_numerical': 0.004721030042918455, 'mean_word_length': 4.842105263157895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2917479', 'n_tokens_mistral': 768, 'n_tokens_neox': 745, 'n_words': 132}