Create VNF instance,Create VNF Identifier
[vfc/gvnfm/vnflcm.git] / lcm / lcm / pub / database / models.py
1 # Copyright 2017 ZTE Corporation.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #         http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 from django.db import models
15
16
17 class VnfInstModel(models.Model):
18     class Meta:
19         db_table = 'GVNFM_VNFINST'
20
21     id = models.CharField(db_column='ID', primary_key=True, max_length=200)
22     name = models.CharField(db_column='NAME', max_length=200)
23     vnfd_id = models.CharField(db_column='VNFDID', max_length=200)
24     description = models.CharField(db_column='DESCRIPTION', max_length=255, null=True, blank=True)
25     status = models.CharField(db_column='STATUS', max_length=200, null=True, blank=True)
26     create_time = models.CharField(db_column='CREATETIME', max_length=200, null=True, blank=True)
27     lastuptime = models.CharField(db_column='LASTUPTIME', max_length=200, null=True, blank=True)
28
29