db/specs/models/biz/shareholder.v
2025-05-09 12:42:42 +03:00

28 lines
522 B
V

module biz
import base
import freeflowuniverse.herolib.data.ourtime
// ShareholderType represents the type of shareholder
pub enum ShareholderType {
individual
corporate
}
// Shareholder represents a shareholder of a company
pub struct Shareholder {
base.Base // Base struct for common fields
pub mut:
id u32
company_id u32
user_id u32
name string
shares f64
percentage f64
type_ ShareholderType
since ourtime.OurTime
created_at ourtime.OurTime
updated_at ourtime.OurTime
}