# models.py文件# This is an auto-generated Django model module.# You'll have to do the following manually to clean this up:# * Rearrange models' order# * Make sure each model has one field with primary_key=True# * Make sure each ForeignKey has `on_delete` set to the desired behavior.# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table# Feel free to rename the models, but don't rename db_table values or field names.from django.db import models
classAccount(models.Model):
cover = models.CharField(max_length=255)
nick_name = models.CharField(max_length=255)
post = models.CharField(max_length=255)
company = models.CharField(max_length=255)
phone = models.CharField(max_length=255)
email = models.CharField(max_length=255)
ring_email = models.CharField(max_length=255)
memo = models.CharField(max_length=255)
psd = models.CharField(max_length=255)
create_time = models.DateTimeField()
max_circle = models.IntegerField()
wechat_id = models.CharField(max_length=255)
cc = models.ForeignKey('ClassifyCountry', models.DO_NOTHING, db_column='cc')classMeta:
managed =False
db_table ='account'classAccountCircle(models.Model):
account = models.ForeignKey(Account, models.DO_NOTHING)
circle = models.ForeignKey('Circle', models.DO_NOTHING)classMeta:
managed =False
db_table ='account_circle'classCountryAttribution(models.Model):id= models.IntegerField(primary_key=True)
title = models.CharField(max_length=255, null=True)classMeta:
managed =False
db_table ='country_attribution'classClassifyCountry(models.Model):id= models.IntegerField(primary_key=True)
title = models.CharField(max_length=255, null=True)
attribution = models.ForeignKey(CountryAttribution, on_delete=models.DO_NOTHING, db_column='attribution')classMeta:
managed =False
db_table ='classify_country'