mirror of
https://github.com/Phundrak/georm.git
synced 2026-07-28 20:09:18 +02:00
8 lines
234 B
SQL
8 lines
234 B
SQL
|
|
-- Add up migration script here
|
||
|
|
CREATE TABLE UserRoles (
|
||
|
|
user_id INTEGER NOT NULL,
|
||
|
|
role_id INTEGER NOT NULL,
|
||
|
|
assigned_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
|
||
|
|
PRIMARY KEY (user_id, role_id)
|
||
|
|
);
|