Plain is headed towards 1.0! Subscribe for development updates →

 1# Generated by Plain 0.14.1 on 2025-01-02 03:38
 2
 3import uuid
 4
 5from plain import models
 6from plain.models import migrations
 7
 8
 9class Migration(migrations.Migration):
10    initial = True
11
12    dependencies = []
13
14    operations = [
15        migrations.CreateModel(
16            name="Pageview",
17            fields=[
18                ("id", models.BigAutoField(auto_created=True, primary_key=True)),
19                ("uuid", models.UUIDField(default=uuid.uuid4, editable=False)),
20                ("title", models.CharField(blank=True, max_length=255)),
21                ("url", models.URLField(db_index=True, max_length=255)),
22                ("referrer", models.URLField(blank=True, max_length=255)),
23                ("timestamp", models.DateTimeField(auto_now_add=True, db_index=True)),
24                (
25                    "user_id",
26                    models.CharField(blank=True, db_index=True, max_length=255),
27                ),
28                (
29                    "session_key",
30                    models.CharField(blank=True, db_index=True, max_length=255),
31                ),
32            ],
33            options={
34                "ordering": ["-timestamp"],
35            },
36        ),
37    ]