Skip to content

Commit

Permalink
Merge pull request #79 from Bidaya0/feature/versioncontrol
Browse files Browse the repository at this point in the history
add version control
  • Loading branch information
Bidaya0 authored Jan 20, 2022
2 parents 841498e + bbf44d7 commit 9d68062
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 9d68062

Please sign in to comment.