mirror of
https://github.com/Phundrak/georm.git
synced 2025-06-25 09:24:57 +00:00
8 lines
207 B
MySQL
8 lines
207 B
MySQL
|
-- Add up migration script here
|
||
|
CREATE TABLE UserRoles (
|
||
|
user_id INTEGER NOT NULL,
|
||
|
role_id INTEGER NOT NULL,
|
||
|
assigned_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||
|
PRIMARY KEY (user_id, role_id)
|
||
|
);
|