You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
412 B
19 lines
412 B
# -*- coding:utf-8 -*-
|
|
"""
|
|
@Created on : 2023/8/6 11:20
|
|
@Author: hxl
|
|
@Des:
|
|
"""
|
|
from tortoise import fields
|
|
from tortoise.models import Model
|
|
|
|
|
|
class BaseModel(Model):
|
|
id = fields.UUIDField(pk=True)
|
|
|
|
created_at = fields.DatetimeField(auto_now_add=True, description='创建时间')
|
|
updated_at = fields.DatetimeField(auto_now=True, description="更新时间")
|
|
|
|
class Meta:
|
|
abstract = True
|