Skip to content

Commit

Permalink
add version control
Browse files Browse the repository at this point in the history
  • Loading branch information
Bidaya0 committed Jan 20, 2022
1 parent 3b08080 commit bbf44d7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions dongtai/models/version_control.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
######################################################################
# @author : bidaya0 (bidaya0@$HOSTNAME)
# @file : version_control
# @created : 星期四 1月 20, 2022 17:32:43 CST
#
# @description :
######################################################################


import time
from django.db import models
from dongtai.utils.settings import get_managed


class VersionControl(models.Model):
version = models.CharField(max_length=255, blank=True, null=True)
component_name = models.CharField(max_length=255, blank=True, null=True)
component_version_hash = models.CharField(max_length=255, blank=True, null=True)
additional = models.CharField(max_length=255, blank=True, null=True)
update_time = models.IntegerField(default=int(time.time()), blank=True)


class Meta:
managed = get_managed()
db_table = 'project_version_control'

0 comments on commit bbf44d7

Please sign in to comment.