first
This commit is contained in:
21
src/company/structs.rs
Normal file
21
src/company/structs.rs
Normal file
@@ -0,0 +1,21 @@
|
||||
// src/company/struct.rs
|
||||
use serde::{Deserialize, Serialize};
|
||||
use sqlx::FromRow;
|
||||
use chrono::NaiveDate;
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, FromRow)]
|
||||
pub struct Company {
|
||||
pub id: i32,
|
||||
pub active: bool,
|
||||
pub created: NaiveDate,
|
||||
pub name: String,
|
||||
pub address: Option<String>,
|
||||
pub town: Option<String>,
|
||||
pub state: Option<String>,
|
||||
pub phone: Option<i64>,
|
||||
pub owner_name: Option<String>,
|
||||
pub owner_phone_number: Option<i64>,
|
||||
pub email: Option<String>,
|
||||
pub user_id: Option<i32>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user