// @generated automatically by Diesel CLI. diesel::table! { department_table (department_id) { department_id -> Int4, #[max_length = 255] department_name -> Varchar, manager_id -> Nullable, #[max_length = 255] location -> Nullable, creation_date -> Nullable, last_update -> Nullable, #[max_length = 255] description -> Nullable, budget -> Nullable, number_of_employees -> Nullable, parent_department_id -> Nullable, #[max_length = 255] email -> Nullable, #[max_length = 255] phone_number -> Nullable, #[max_length = 255] address -> Nullable, #[max_length = 255] city -> Nullable, #[max_length = 255] state -> Nullable, #[max_length = 255] postal_code -> Nullable, } } diesel::table! { employee_table (employee_id) { employee_id -> Int4, #[max_length = 255] first_name -> Nullable, #[max_length = 255] last_name -> Nullable, #[max_length = 255] employee_name -> Varchar, #[max_length = 255] gender -> Nullable, date_of_birth -> Nullable, hire_date -> Nullable, #[max_length = 255] email -> Nullable, #[max_length = 255] phone_number -> Nullable, department_id -> Nullable, #[max_length = 255] job_title -> Nullable, salary -> Nullable, manager_id -> Nullable, #[max_length = 255] address -> Nullable, #[max_length = 255] city -> Nullable, #[max_length = 255] state -> Nullable, #[max_length = 255] postal_code -> Nullable, valid -> Nullable, last_update -> Nullable, #[max_length = 255] role_name -> Nullable, role_id -> Nullable, } } diesel::table! { file_table (id) { id -> Uuid, file_name -> Varchar, file_url -> Varchar, uploaded_at -> Nullable, } } diesel::table! { follows (follow_id) { following_user_id -> Int4, followed_user_id -> Int4, created_at -> Nullable, follow_id -> Int4, } } diesel::table! { permission_table (id) { id -> Int4, #[max_length = 255] permission_name -> Varchar, permission_description -> Nullable, #[max_length = 255] resource -> Varchar, #[max_length = 50] action -> Varchar, is_active -> Nullable, created_at -> Nullable, updated_at -> Nullable, #[max_length = 255] created_by -> Nullable, #[max_length = 255] updated_by -> Nullable, notes -> Nullable, } } diesel::table! { posts (post_id) { post_id -> Int4, #[max_length = 255] title -> Nullable, body -> Nullable, user_id -> Nullable, #[max_length = 255] status -> Nullable, created_at -> Nullable, updated_at -> Nullable, #[max_length = 255] username -> Nullable, } } diesel::table! { role_table (role_id) { role_id -> Int4, #[max_length = 255] role_name -> Varchar, #[max_length = 255] description -> Nullable, #[max_length = 255] permissions -> Nullable, created_at -> Nullable, updated_at -> Nullable, } } diesel::table! { tasks (id) { id -> Int4, title -> Text, content -> Nullable, created_at -> Nullable, updated_at -> Nullable, user_id -> Nullable, } } diesel::table! { user_table (user_id) { user_id -> Int4, #[max_length = 255] username -> Varchar, role_id -> Nullable, created_at -> Nullable, #[max_length = 255] email -> Nullable, #[max_length = 255] password -> Varchar, #[max_length = 255] fullname -> Nullable, #[max_length = 255] avatar_url -> Nullable, bio -> Nullable, updated_at -> Nullable, #[max_length = 255] mobile_phone -> Varchar, } } diesel::joinable!(tasks -> user_table (user_id)); diesel::joinable!(user_table -> role_table (role_id)); diesel::allow_tables_to_appear_in_same_query!( department_table, employee_table, file_table, follows, permission_table, posts, role_table, tasks, user_table, );