-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'contracts_implementation' into staging
- Loading branch information
Showing
14 changed files
with
832 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
-- Add table for contracts data | ||
-- +migrate Up | ||
create table if not exists ctrContracts | ||
( | ||
contractId int auto_increment primary key, | ||
contractType int not null, | ||
issuerID int not null, | ||
issuerCorpID int not null, | ||
forCorp bit(1) default b'0' not null, | ||
isPrivate int not null, | ||
assigneeID int not null, | ||
acceptorID int default 0 not null, | ||
dateIssued bigint(20) unsigned not null, | ||
dateExpired bigint(20) unsigned not null, | ||
dateAccepted bigint(20) unsigned default 0 not null, | ||
expireTimeInMinutes int not null, | ||
duration bigint not null, | ||
numDays int not null, | ||
dateCompleted bigint(20) unsigned default 0 not null, | ||
startStationID int not null, | ||
startSolarSystemID int not null, | ||
startRegionID int not null, | ||
endStationID int default 0 not null, | ||
endSolarSystemID int default 0 not null, | ||
endRegionID int default 0 not null, | ||
price int not null, | ||
reward int not null, | ||
collateral int not null, | ||
title varchar(100) not null, | ||
description varchar(100) not null, | ||
status int default 0 not null, | ||
crateID int default 0 not null, | ||
volume decimal(16,2) default 0.00 not null, | ||
issuerAllianceID int default 0 not null, | ||
issuerWalletKey int default 0 not null, | ||
acceptorWalletKey int default 0 not null, | ||
startStationDivision int not null | ||
); | ||
create table if not exists ctrItems | ||
( | ||
contractId int not null, | ||
itemID int not null, | ||
quantity int not null, | ||
itemTypeID int not null, | ||
inCrate bit(1) default b'0' not null, | ||
parentID int not null, | ||
productivityLevel int default 0 not null, | ||
materialLevel int default 0 not null, | ||
isCopy bit(1) default b'0' not null, | ||
licensedProductionRunsRemaining int default 0 not null, | ||
damage int default 0 not null, | ||
flagID int default 0 not null | ||
); | ||
create table if not exists ctrBids | ||
( | ||
contractId int not null, | ||
amount int not null, | ||
bidderID int not null, | ||
bidDateTime bigint(20) unsigned not null | ||
); | ||
|
||
-- +migrate Down | ||
drop table ctrContracts; | ||
drop table ctrItems; | ||
drop table ctrBids; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
<elements> | ||
|
||
<elementDef name="Call_CreateContract"> | ||
<tupleInline> | ||
<int name="contractType"/> | ||
<bool name="isPrivate"/> | ||
<int name="assigneeID" safe="true" none_marker="0"/> | ||
<int name="expireTime"/> | ||
<int name="duration"/> | ||
<int name="startStationId"/> | ||
<int name="endStationId" safe="true" none_marker="0"/> | ||
<int name="price"/> | ||
<int name="reward"/> | ||
<int name="collateral"/> | ||
<wstring name="title" safe="true"/> | ||
<wstring name="description" safe="true"/> | ||
</tupleInline> | ||
</elementDef> | ||
|
||
</elements> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.