mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
16 lines
464 B
Python
16 lines
464 B
Python
# coding=utf-8
|
|
from django.db import models
|
|
|
|
|
|
class JudgeServer(models.Model):
|
|
ip = models.IPAddressField()
|
|
port = models.IntegerField()
|
|
# 这个服务器最大可能运行的判题实例数量
|
|
max_instance_number = models.IntegerField()
|
|
left_instance_number = models.IntegerField()
|
|
# status 为 false 的时候代表不使用这个服务器
|
|
status = models.BooleanField(default=True)
|
|
|
|
class Meta:
|
|
db_table = "judge_server"
|