feat(gpodder_sqlite): add signup links table

This commit is contained in:
Jef Roosens 2025-07-02 10:23:22 +02:00
parent 2514aa8413
commit c48d2a78ca
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
6 changed files with 35 additions and 1 deletions

View file

@ -2,5 +2,6 @@ pub mod device;
pub mod device_subscription;
pub mod episode_action;
pub mod session;
pub mod signup_link;
pub mod sync_group;
pub mod user;

View file

@ -0,0 +1,11 @@
use diesel::prelude::*;
use crate::schema::*;
#[derive(Clone, Queryable, Selectable, Insertable)]
#[diesel(table_name = signup_links)]
#[diesel(check_for_backend(diesel::sqlite::Sqlite))]
pub struct SignupLink {
pub id: i64,
pub created_at: i64,
}

View file

@ -47,6 +47,13 @@ diesel::table! {
}
}
diesel::table! {
signup_links (id) {
id -> BigInt,
created_at -> BigInt,
}
}
diesel::table! {
sync_groups (id) {
id -> BigInt,
@ -74,6 +81,7 @@ diesel::allow_tables_to_appear_in_same_query!(
devices,
episode_actions,
sessions,
signup_links,
sync_groups,
users,
);