models.py 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # This is an auto-generated Django model module.
  2. # You'll have to do the following manually to clean this up:
  3. # * Rearrange models' order
  4. # * Make sure each model has one field with primary_key=True
  5. # * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
  6. # * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
  7. # Feel free to rename the models, but don't rename db_table values or field names.
  8. from django.db import models
  9. class User(models.Model):
  10. uid = models.CharField(max_length=22, db_comment='用户id')
  11. mobile = models.IntegerField(blank=True, null=True, db_comment='用户手机号')
  12. password = models.CharField(max_length=255, blank=True, null=True, db_comment='用户密码')
  13. voice_feature_id = models.CharField(max_length=255, db_collation='utf8_general_ci', blank=True, null=True, db_comment='用户声纹特征id')
  14. voice_sit_command = models.TextField(blank=True, null=True, db_comment='用户“坐下”指令音频')
  15. voice_stand_command = models.TextField(blank=True, null=True, db_comment='用户“站起来”指令音频')
  16. voice_feature_info_param = models.CharField(max_length=255, db_collation='utf8_general_ci', blank=True, null=True, db_comment='用户声纹信息参数')
  17. voice_update_feature_info_param = models.CharField(max_length=255, db_collation='utf8_general_ci', blank=True, null=True, db_comment='用户更新声纹信息参数')
  18. registration_time = models.DateTimeField(blank=True, null=True, db_comment='用户登录时间')
  19. is_sit = models.IntegerField(blank=True, null=True, db_comment='是否坐下口令(是:1,否0)')
  20. is_stand = models.IntegerField(blank=True, null=True, db_comment='是否站起口令(是:1,否0)')
  21. class Meta:
  22. managed = False
  23. db_table = 'user'
  24. app_label = 'aiDogApp'
  25. class VoiceFeatureInfo(models.Model):
  26. uid = models.CharField(max_length=22, db_comment='用户id')
  27. voice_feature_id = models.CharField(max_length=25, blank=True, null=True, db_comment='每条声纹数据的声纹id')
  28. voice_feature_info_param = models.CharField(max_length=255, blank=True, null=True,
  29. db_comment='用户声纹信息参数')
  30. voice_update_feature_info_param = models.CharField(max_length=255, blank=True, null=True,
  31. db_comment='用户更新声纹信息参数')
  32. record_time = models.DateTimeField(blank=True, null=True, db_comment='用户录音时间')
  33. command_type = models.IntegerField(blank=True, null=True,
  34. db_comment='口令类型(0:叫名字 1:坐下,2:站起,3:摇尾巴,4:走过来,5抬左手,6:抬右手)')
  35. voice_sit_command = models.TextField(blank=True, null=True, db_comment='用户“坐下”指令音频')
  36. voice_stand_command = models.TextField(blank=True, null=True, db_comment='用户“站起来”指令音频')
  37. voice_name_command = models.TextField(blank=True, null=True, db_comment='用户“叫名字”指令音频')
  38. voice_wagtail_command = models.TextField(blank=True, null=True, db_comment='用户“摇尾巴”指令音频')
  39. voice_come_command = models.TextField(blank=True, null=True, db_comment='用户“走过来”指令音频')
  40. class Meta:
  41. managed = False
  42. db_table = 'voice_feature_info'
  43. app_label = 'aiDogApp'