35 lines
1.1 KiB
JavaScript
Raw Normal View History

2017-10-11 17:44:18 -07:00
import { Factory, faker } from 'ember-cli-mirage';
2017-10-09 14:44:19 -07:00
export default Factory.extend({
id: faker.random.number({ min: 10000, max: 20000 }),
2017-10-11 17:44:18 -07:00
created: null,
formatedModified: '2017-09-04 10:34:44.0',
hasSchemaHistory: false,
hdfsBrowserLink: null,
isFavorite: false,
isOwned: false,
isWatched: false,
modified: faker.date.past(),
name: faker.commerce.productName(),
properties: () => ({
2017-10-09 14:44:19 -07:00
DB_ID: faker.random.number({ min: 10000, max: 20000 }),
TBL_ID: faker.random.number({ min: 10000, max: 20000 }),
view_depends_on: [faker.commerce.productName()],
2017-10-09 14:44:19 -07:00
create_time: faker.date.past(),
etl_source: 'COLUMN_V2',
input_format: faker.commerce.productName(),
output_format: faker.commerce.productName(),
is_compressed: false,
SD_ID: faker.random.number({ min: 10000, max: 20000 }),
is_storedassubdirectories: false,
serialization_format: 'Sequence',
tbl_type: 'VIRTUAL_VIEW',
view_expanded_text: faker.lorem.sentence()
}),
2017-10-11 17:44:18 -07:00
schema: 'abcd',
source: 'Hive',
urn: faker.internet.url(),
watchId: 0,
owners: () => []
2017-10-09 14:44:19 -07:00
});