This repository has been archived by the owner on May 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: new Transfer entity to avoid SoldDomain synchronization problems
Refs #91
- Loading branch information
Leandro Yalet
committed
May 19, 2020
1 parent
f8973f6
commit 31601cc
Showing
4 changed files
with
53 additions
and
29 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
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,16 @@ | ||
import { Table, DataType, Column, Model } from 'sequelize-typescript' | ||
|
||
@Table({ freezeTableName: true, tableName: 'rns_transfer', timestamps: false }) | ||
export default class Transfer extends Model { | ||
@Column({ primaryKey: true, type: DataType.STRING }) | ||
id!: string | ||
|
||
@Column(DataType.STRING) | ||
tokenId!: string | ||
|
||
@Column(DataType.STRING) | ||
sellerAddress!: string // previous owner | ||
|
||
@Column(DataType.STRING) | ||
newOwnerAddress!: string // buyer | ||
} |
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