const std = @import("std"); const jetquery = @import("jetquery"); const t = jetquery.schema.table; pub fn up(repo: anytype) !void { try repo.createTable( "albumsongs", &.{ t.primaryKey("id", .{ .type = .bigint }), t.column("song_id", .bigint, .{ .reference = .{ "songs", "id" } }), t.column("album_id", .bigint, .{ .reference = .{ "albums", "id" } }), t.timestamps(.{}), }, .{}, ); } pub fn down(repo: anytype) !void { try repo.dropTable("albumsongs", .{}); }