-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from Bidaya0/feature/versioncontrol
add version control
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |