first commit

This commit is contained in:
2025-12-31 11:44:15 +07:00
commit c33ea5500e
12 changed files with 484 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
DROP INDEX IF EXISTS idx_identifiers_created_at;
DROP INDEX IF EXISTS idx_identifiers_slug;
DROP TABLE IF EXISTS identifiers;

View File

@@ -0,0 +1,12 @@
CREATE TABLE identifiers (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
slug VARCHAR(255) UNIQUE NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
updated_at TIMESTAMP NOT NULL DEFAULT NOW()
);
CREATE INDEX idx_identifiers_created_at
ON identifiers(created_at);
CREATE INDEX idx_identifiers_slug
ON identifiers(slug);