mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-01-12 08:34:40 +08:00
28 lines
527 B
JavaScript
28 lines
527 B
JavaScript
/** @param { import("node-pg-migrate").MigrationBuilder } pgm */
|
|
exports.up = pgm => {
|
|
pgm.createTable('faucet_requests', {
|
|
id: {
|
|
type: 'serial',
|
|
primaryKey: true,
|
|
},
|
|
currency: {
|
|
type: 'string',
|
|
notNull: true,
|
|
},
|
|
address: {
|
|
type: 'string',
|
|
notNull: true,
|
|
},
|
|
ip: {
|
|
type: 'string',
|
|
notNull: true,
|
|
},
|
|
occurred_at: {
|
|
type: 'bigint',
|
|
notNull: true,
|
|
},
|
|
});
|
|
|
|
pgm.createIndex('faucet_requests', 'address', { method: 'hash' });
|
|
}
|