File: //proc/self/root/usr/local/CyberCP/backup/models.py
from django.db import models
class DBUsers(models.Model):
host = models.CharField(db_column='Host', primary_key=True, max_length=60) # Field name made lowercase.
user = models.CharField(db_column='User', max_length=16) # Field name made lowercase.
password = models.CharField(db_column='Password', max_length=41) # Field name made lowercase.
select_priv = models.CharField(db_column='Select_priv', max_length=1) # Field name made lowercase.
insert_priv = models.CharField(db_column='Insert_priv', max_length=1) # Field name made lowercase.
update_priv = models.CharField(db_column='Update_priv', max_length=1) # Field name made lowercase.
delete_priv = models.CharField(db_column='Delete_priv', max_length=1) # Field name made lowercase.
create_priv = models.CharField(db_column='Create_priv', max_length=1) # Field name made lowercase.
drop_priv = models.CharField(db_column='Drop_priv', max_length=1) # Field name made lowercase.
reload_priv = models.CharField(db_column='Reload_priv', max_length=1) # Field name made lowercase.
shutdown_priv = models.CharField(db_column='Shutdown_priv', max_length=1) # Field name made lowercase.
process_priv = models.CharField(db_column='Process_priv', max_length=1) # Field name made lowercase.
file_priv = models.CharField(db_column='File_priv', max_length=1) # Field name made lowercase.
grant_priv = models.CharField(db_column='Grant_priv', max_length=1) # Field name made lowercase.
references_priv = models.CharField(db_column='References_priv', max_length=1) # Field name made lowercase.
index_priv = models.CharField(db_column='Index_priv', max_length=1) # Field name made lowercase.
alter_priv = models.CharField(db_column='Alter_priv', max_length=1) # Field name made lowercase.
show_db_priv = models.CharField(db_column='Show_db_priv', max_length=1) # Field name made lowercase.
super_priv = models.CharField(db_column='Super_priv', max_length=1) # Field name made lowercase.
create_tmp_table_priv = models.CharField(db_column='Create_tmp_table_priv', max_length=1) # Field name made lowercase.
lock_tables_priv = models.CharField(db_column='Lock_tables_priv', max_length=1) # Field name made lowercase.
execute_priv = models.CharField(db_column='Execute_priv', max_length=1) # Field name made lowercase.
repl_slave_priv = models.CharField(db_column='Repl_slave_priv', max_length=1) # Field name made lowercase.
repl_client_priv = models.CharField(db_column='Repl_client_priv', max_length=1) # Field name made lowercase.
create_view_priv = models.CharField(db_column='Create_view_priv', max_length=1) # Field name made lowercase.
show_view_priv = models.CharField(db_column='Show_view_priv', max_length=1) # Field name made lowercase.
create_routine_priv = models.CharField(db_column='Create_routine_priv', max_length=1) # Field name made lowercase.
alter_routine_priv = models.CharField(db_column='Alter_routine_priv', max_length=1) # Field name made lowercase.
create_user_priv = models.CharField(db_column='Create_user_priv', max_length=1) # Field name made lowercase.
event_priv = models.CharField(db_column='Event_priv', max_length=1) # Field name made lowercase.
trigger_priv = models.CharField(db_column='Trigger_priv', max_length=1) # Field name made lowercase.
create_tablespace_priv = models.CharField(db_column='Create_tablespace_priv', max_length=1) # Field name made lowercase.
ssl_type = models.CharField(max_length=9)
ssl_cipher = models.TextField()
x509_issuer = models.TextField()
x509_subject = models.TextField()
max_questions = models.IntegerField()
max_updates = models.IntegerField()
max_connections = models.IntegerField()
max_user_connections = models.IntegerField()
plugin = models.CharField(max_length=64)
authentication_string = models.TextField()
class Meta:
db_table = 'user'
unique_together = (('host', 'user'),)