'''
/django_api/user/actvity.py
-------------------------
Model of Ane
'''

from django.db import models
from django.utils import timezone
from django_api.user.models import User

# Ane model
class Ane(models.Model):
    # Name of ane
    name = models.CharField(max_length=100)
    # if the user take part in the game,  0 - not, 1 otherwise
    isPart = models.BooleanField(default=0)
    # if the user has the hint?,  0 - unfinished, 1  otherwise
    hasInd = models.BooleanField(default=0)
    # if the user finished the game,  0 - unfinished, 1  otherwise
    isFini = models.BooleanField(default=0)
    # if the user is freezed,  0 - unfreezed, 1  otherwise
    isFreeze = models.BooleanField(default=0)
    # The time used to finish the game, unfinished -> 0
    time = models.IntegerField(default=0)
    # The step user achieved
    step = models.IntegerField(default=0)
    # The score of this user
    a_score = models.IntegerField(default=0)
    # The comment of this user
    comment = models.TextField(default='None')
    # Begin time
    start_time = models.DateTimeField(default=timezone.now)
    # End time
    end_time = models.DateTimeField(default=timezone.now)
    # isStart - 1, isStop - 2, isEnd - 3 (default - 0)
    status = models.IntegerField(default=0)
    # 创建时间
    created = models.DateTimeField(default=timezone.now)
    # 更新时间
    updated = models.DateTimeField(auto_now=True)

    user = models.ForeignKey(User, on_delete=models.CASCADE, default=0, related_name='anes')

    class Meta:
        db_table = 'Ane'
4edd77865e0cd32c23aa9ec2ef5ee41d6c649807
<mask token>

<mask token>


class Ane(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        db_table = 'Ane'

<mask token>


class Ane(models.Model):
    name = models.CharField(max_length=100)
    isPart = models.BooleanField(default=0)
    hasInd = models.BooleanField(default=0)
    isFini = models.BooleanField(default=0)
    isFreeze = models.BooleanField(default=0)
    time = models.IntegerField(default=0)
    step = models.IntegerField(default=0)
    a_score = models.IntegerField(default=0)
    comment = models.TextField(default='None')
    start_time = models.DateTimeField(default=timezone.now)
    end_time = models.DateTimeField(default=timezone.now)
    status = models.IntegerField(default=0)
    created = models.DateTimeField(default=timezone.now)
    updated = models.DateTimeField(auto_now=True)
    user = models.ForeignKey(User, on_delete=models.CASCADE, default=0,
        related_name='anes')


    class Meta:
        db_table = 'Ane'

<mask token>
from django.db import models
from django.utils import timezone
from django_api.user.models import User


class Ane(models.Model):
    name = models.CharField(max_length=100)
    isPart = models.BooleanField(default=0)
    hasInd = models.BooleanField(default=0)
    isFini = models.BooleanField(default=0)
    isFreeze = models.BooleanField(default=0)
    time = models.IntegerField(default=0)
    step = models.IntegerField(default=0)
    a_score = models.IntegerField(default=0)
    comment = models.TextField(default='None')
    start_time = models.DateTimeField(default=timezone.now)
    end_time = models.DateTimeField(default=timezone.now)
    status = models.IntegerField(default=0)
    created = models.DateTimeField(default=timezone.now)
    updated = models.DateTimeField(auto_now=True)
    user = models.ForeignKey(User, on_delete=models.CASCADE, default=0,
        related_name='anes')


    class Meta:
        db_table = 'Ane'

'''
/django_api/user/actvity.py
-------------------------
Model of Ane
'''

from django.db import models
from django.utils import timezone
from django_api.user.models import User

# Ane model
class Ane(models.Model):
    # Name of ane
    name = models.CharField(max_length=100)
    # if the user take part in the game,  0 - not, 1 otherwise
    isPart = models.BooleanField(default=0)
    # if the user has the hint?,  0 - unfinished, 1  otherwise
    hasInd = models.BooleanField(default=0)
    # if the user finished the game,  0 - unfinished, 1  otherwise
    isFini = models.BooleanField(default=0)
    # if the user is freezed,  0 - unfreezed, 1  otherwise
    isFreeze = models.BooleanField(default=0)
    # The time used to finish the game, unfinished -> 0
    time = models.IntegerField(default=0)
    # The step user achieved
    step = models.IntegerField(default=0)
    # The score of this user
    a_score = models.IntegerField(default=0)
    # The comment of this user
    comment = models.TextField(default='None')
    # Begin time
    start_time = models.DateTimeField(default=timezone.now)
    # End time
    end_time = models.DateTimeField(default=timezone.now)
    # isStart - 1, isStop - 2, isEnd - 3 (default - 0)
    status = models.IntegerField(default=0)
    # 创建时间
    created = models.DateTimeField(default=timezone.now)
    # 更新时间
    updated = models.DateTimeField(auto_now=True)

    user = models.ForeignKey(User, on_delete=models.CASCADE, default=0, related_name='anes')

    class Meta:
        db_table = 'Ane'