create table messages(
id serial primary key,
user_id uuid not null,
group_id uuid not null,
content text not null,
sent_at timestamptz not null default now(),
foreign key (user_id) references users(id),
foreign key (group_id) references groups(id)
);
#[derive(Serialize, Deserialize, Debug)]
pub struct MessageModel {
pub id: i32,
pub content: String,
pub user_id: Uuid,
pub group_id: Uuid,
pub sent_at: OffsetDateTime,
}
This specific query among many other queries in the project is causing compilation error.
This issue isn't reproducible on MacOS and Linux (on both all is working fine).
After deleting query code is compiling.
I have no idea if it's my fault or not, but assuming it's only on windows, it's a bug