Files
Notes/notes-service/vendor/sqlx/tests/mysql/setup-mariadb.sql
T
2026-08-01 16:11:49 +03:00

11 lines
291 B
SQL
Executable File

-- additional SQL to execute for MariaDB databases
CREATE TABLE tweet_with_uuid
(
-- UUID is only a bespoke datatype in MariaDB.
id UUID PRIMARY KEY DEFAULT UUID(),
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
text TEXT NOT NULL,
owner_id UUID
);