TS Lint / ESLint (push) Successful in 1m0s
Python Lint CI / ty (push) Successful in 1m6s
Python Lint CI / ruff (push) Successful in 1m7s
Python Lint CI / ruff-format-check (push) Successful in 1m12s
TS Lint / Oxlint (push) Failing after 4m55s
TS Lint / TypeScript (push) Successful in 5m15s
28 lines
1.2 KiB
Python
28 lines
1.2 KiB
Python
from tortoise import migrations
|
|
from tortoise.migrations import operations as ops
|
|
from uuid import uuid4
|
|
from tortoise import fields
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [('models', '0001_initial')]
|
|
|
|
initial = False
|
|
|
|
operations = [
|
|
ops.CreateModel(
|
|
name='Task',
|
|
fields=[
|
|
('id', fields.UUIDField(primary_key=True, default=uuid4, unique=True, db_index=True)),
|
|
('created_at', fields.DatetimeField(auto_now=False, auto_now_add=True)),
|
|
('updated_at', fields.DatetimeField(auto_now=True, auto_now_add=False)),
|
|
('list_name', fields.CharField(db_index=True, max_length=32)),
|
|
('name', fields.TextField(unique=False)),
|
|
('reset_cron', fields.CharField(null=True, max_length=32)),
|
|
('check_date', fields.DatetimeField(null=True, auto_now=False, auto_now_add=False)),
|
|
('previous_check_date', fields.DatetimeField(null=True, auto_now=False, auto_now_add=False)),
|
|
],
|
|
options={'table': 'task', 'app': 'models', 'pk_attr': 'id'},
|
|
bases=['AbstractModel'],
|
|
),
|
|
]
|