Update git remote URL from git.threefold.info to git.ourworld.tf
This commit is contained in:
@@ -1,17 +1,34 @@
|
||||
module biz
|
||||
import base
|
||||
|
||||
import freeflowuniverse.herolib.data.ourtime
|
||||
import freeflowuniverse.herolib.hero.models.core
|
||||
|
||||
|
||||
// CompanyStatus represents the status of a company
|
||||
pub enum CompanyStatus {
|
||||
active
|
||||
inactive
|
||||
suspended
|
||||
// Company represents a business entity with all necessary details
|
||||
pub struct Company {
|
||||
core.Base
|
||||
pub mut:
|
||||
name string // Company legal name @[index: 'company_name_idx']
|
||||
registration_number string // Official registration number @[index: 'company_reg_idx']
|
||||
incorporation_date u64 // Unix timestamp
|
||||
fiscal_year_end string // Format: MM-DD
|
||||
email string
|
||||
phone string
|
||||
website string
|
||||
address string
|
||||
business_type BusinessType
|
||||
industry string // Industry classification
|
||||
description string // Company description
|
||||
status CompanyStatus
|
||||
}
|
||||
|
||||
// BusinessType represents the type of a business
|
||||
// CompanyStatus tracks the operational state of a company
|
||||
pub enum CompanyStatus {
|
||||
pending_payment
|
||||
active
|
||||
suspended
|
||||
inactive
|
||||
}
|
||||
|
||||
// BusinessType categorizes the company structure
|
||||
pub enum BusinessType {
|
||||
coop
|
||||
single
|
||||
@@ -19,25 +36,3 @@ pub enum BusinessType {
|
||||
starter
|
||||
global
|
||||
}
|
||||
|
||||
// Company represents a company registered in the Freezone
|
||||
pub struct Company {
|
||||
base.Base // Provides id u32, creation_time, mod_time, comments []u32
|
||||
pub mut:
|
||||
// id u32 is provided by base.Base
|
||||
name string
|
||||
registration_number string
|
||||
incorporation_date ourtime.OurTime
|
||||
fiscal_year_end string
|
||||
email string
|
||||
phone string
|
||||
website string
|
||||
address string
|
||||
business_type BusinessType
|
||||
industry string
|
||||
description string
|
||||
status CompanyStatus
|
||||
// created_at is provided by base.Base.creation_time
|
||||
// updated_at is provided by base.Base.mod_time
|
||||
shareholders []Shareholder
|
||||
}
|
||||
|
Reference in New Issue
Block a user