knowdit-repo-model 0.6.0

Smart contract auditing framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use sea_orm::entity::prelude::*;

// Note: no foreign-key constraints. `contract_id` and `inherited_id` may refer to either a
// `contract` or an `interface` row (Solidity contracts inherit from both); the consumer joins
// against the appropriate table.
#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize, DeriveEntityModel)]
#[sea_orm(table_name = "contract_inherit")]
pub struct Model {
    #[sea_orm(primary_key, auto_increment = false)]
    pub contract_id: i32,
    #[sea_orm(primary_key, auto_increment = false, indexed)]
    pub inherited_id: i32,
}

impl ActiveModelBehavior for ActiveModel {}