Co-authored-by: Tomek Wójcik <labs@tomekwojcik.pl> Co-committed-by: Tomek Wójcik <labs@tomekwojcik.pl>
32 lines
1.2 KiB
Python
32 lines
1.2 KiB
Python
# Generated by Django 5.2.3 on 2025-09-04 18:50
|
|
|
|
import uuid6
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('accounts', '0004_alter_account_settings_and_more'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='AccessToken',
|
|
fields=[
|
|
('id', models.UUIDField(default=uuid6.uuid7, editable=False, primary_key=True, serialize=False)),
|
|
('account_uuid', models.UUIDField(db_index=True, default=None)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
('deleted_at', models.DateTimeField(blank=True, db_index=True, default=None, editable=False, null=True)),
|
|
('key', models.CharField(db_index=True, default=None, editable=False, max_length=128, unique=True)),
|
|
('origin', models.CharField(db_index=True, default=None)),
|
|
('meta', models.JSONField(blank=True, default=dict, null=True)),
|
|
],
|
|
options={
|
|
'verbose_name': 'Access Token',
|
|
'verbose_name_plural': 'Access Tokens',
|
|
},
|
|
),
|
|
]
|