14 lines
751 B
Python
14 lines
751 B
Python
|
from tortoise import Model, fields
|
||
|
from src.models import with_table_name
|
||
|
|
||
|
|
||
|
class UserCombinationHistory(Model):
|
||
|
id = fields.IntField()
|
||
|
last_time = fields.CharField(max_length=10, null=True, description='最后一次使用的时间', )
|
||
|
stock_code = fields.CharField(max_length=20, null=True, description='股票代码', )
|
||
|
stock_name = fields.CharField(max_length=20, null=True, description='股票名称', )
|
||
|
stock_weights = fields.JSONField(null=True, description='权重存储', )
|
||
|
strategy = fields.JSONField(null=True, description='用户使用的策略参数', )
|
||
|
strategy_name = fields.CharField(max_length=50, null=True, description='用户使用的策略', )
|
||
|
user_id = fields.IntField(description='用户的id', )
|