migrate/database/spanner/examples/migrations/1496602638_create_books_tab...

7 lines
155 B
SQL

CREATE TABLE Books (
UserId INT64,
Name STRING(40),
Author STRING(40)
) PRIMARY KEY(UserId, Name),
INTERLEAVE IN PARENT Users ON DELETE CASCADE