mirror of
				https://github.com/civsocit/olgram.git
				synced 2023-07-22 01:29:12 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			283 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			283 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from tortoise.models import Model
 | 
						|
from tortoise import fields
 | 
						|
 | 
						|
 | 
						|
class Bot(Model):
 | 
						|
    id = fields.IntField(pk=True)
 | 
						|
    token = fields.CharField(max_length=50, unique=True)
 | 
						|
    owner = fields.ForeignKeyField("models.User", related_name="bots")
 | 
						|
 | 
						|
    class Meta:
 | 
						|
        table = 'bot'
 |