mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-01 10:02:01 +00:00
19 lines
307 B
Python
19 lines
307 B
Python
# coding=utf-8
|
|
from django.db import models
|
|
|
|
from account.models import User
|
|
|
|
|
|
class AbstractProblem(models.Model):
|
|
|
|
class Meta:
|
|
abstract = True
|
|
|
|
|
|
class Problem(AbstractProblem):
|
|
pass
|
|
|
|
|
|
class Solution(models.Model):
|
|
user = models.ForeignKey(User)
|
|
problem = models.ForeignKey(Problem) |