You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
475 B
11 lines
475 B
from django.db import models
|
|
from django.contrib.auth.models import User
|
|
|
|
# Create your models here.
|
|
class hours(models.Model):
|
|
user = models.ForeignKey(User, on_delete=models.CASCADE, null=True)
|
|
date = models.DateField(auto_now_add=False)
|
|
is_ldc = models.BooleanField(default=False)
|
|
is_geplant = models.BooleanField(default=False)
|
|
hours = models.IntegerField(auto_created=False, default=0)
|
|
minutes = models.IntegerField(auto_created=False, default=0) |