CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE reports_stock (
                id INTEGER PRIMARY KEY AUTOINCREMENT,
                infoCode TEXT UNIQUE,
                title TEXT,
                stockName TEXT,
                stockCode TEXT,
                orgCode TEXT,
                orgName TEXT,
                orgSName TEXT,
                publishDate TEXT,
                column TEXT,
                predictNextTwoYearEps TEXT,
                predictNextTwoYearPe TEXT,
                predictNextYearEps TEXT,
                predictNextYearPe TEXT,
                predictThisYearEps TEXT,
                predictThisYearPe TEXT,
                predictLastYearEps TEXT,
                predictLastYearPe TEXT,
                actualLastTwoYearEps TEXT,
                actualLastYearEps TEXT,
                industryCode TEXT,
                industryName TEXT,
                emIndustryCode TEXT,
                indvInduCode TEXT,
                indvInduName TEXT,
                emRatingCode TEXT,
                emRatingValue TEXT,
                emRatingName TEXT,
                lastEmRatingCode TEXT,
                lastEmRatingValue TEXT,
                lastEmRatingName TEXT,
                ratingChange INTEGER,
                reportType INTEGER,
                author TEXT,
                indvIsNew TEXT,
                researcher TEXT,
                newListingDate TEXT,
                newPurchaseDate TEXT,
                newIssuePrice REAL,
                newPeIssueA REAL,
                indvAimPriceT TEXT,
                indvAimPriceL TEXT,
                attachType TEXT,
                attachSize INTEGER,
                attachPages INTEGER,
                encodeUrl TEXT,
                sRatingName TEXT,
                sRatingCode TEXT,
                market TEXT,
                authorID TEXT,
                count INTEGER,
                orgType TEXT,
                created_at TEXT DEFAULT (datetime('now', 'localtime')),
                updated_at TEXT DEFAULT (datetime('now', 'localtime'))
            );
CREATE TABLE reports_industry (
                id INTEGER PRIMARY KEY AUTOINCREMENT,
                infoCode TEXT UNIQUE,
                title TEXT,
                stockName TEXT,
                stockCode TEXT,
                orgCode TEXT,
                orgName TEXT,
                orgSName TEXT,
                publishDate TEXT,
                column TEXT,
                predictNextTwoYearEps TEXT,
                predictNextTwoYearPe TEXT,
                predictNextYearEps TEXT,
                predictNextYearPe TEXT,
                predictThisYearEps TEXT,
                predictThisYearPe TEXT,
                predictLastYearEps TEXT,
                predictLastYearPe TEXT,
                actualLastTwoYearEps TEXT,
                actualLastYearEps TEXT,
                industryCode TEXT,
                industryName TEXT,
                emIndustryCode TEXT,
                indvInduCode TEXT,
                indvInduName TEXT,
                emRatingCode TEXT,
                emRatingValue TEXT,
                emRatingName TEXT,
                lastEmRatingCode TEXT,
                lastEmRatingValue TEXT,
                lastEmRatingName TEXT,
                ratingChange TEXT,
                reportType INTEGER,
                author TEXT,
                indvIsNew TEXT,
                researcher TEXT,
                newListingDate TEXT,
                newPurchaseDate TEXT,
                newIssuePrice TEXT,
                newPeIssueA TEXT,
                indvAimPriceT TEXT,
                indvAimPriceL TEXT,
                attachType TEXT,
                attachSize INTEGER,
                attachPages INTEGER,
                encodeUrl TEXT,
                sRatingName TEXT,
                sRatingCode TEXT,
                market TEXT,
                authorID TEXT,
                count INTEGER,
                orgType TEXT,
                created_at TEXT DEFAULT (datetime('now', 'localtime')),
                updated_at TEXT DEFAULT (datetime('now', 'localtime'))
            );
CREATE TABLE reports_newstrock (
                id INTEGER PRIMARY KEY AUTOINCREMENT,
                infoCode TEXT UNIQUE,
                title TEXT,
                stockName TEXT,
                stockCode TEXT,
                orgCode TEXT,
                orgName TEXT,
                orgSName TEXT,
                publishDate TEXT,
                column TEXT,
                actualLastTwoYearEps TEXT,
                actualLastYearEps TEXT,
                industryCode TEXT,
                industryName TEXT,
                emIndustryCode TEXT,
                indvInduCode TEXT,
                indvInduName TEXT,
                emRatingCode TEXT,
                emRatingValue TEXT,
                emRatingName TEXT,
                lastEmRatingCode TEXT,
                lastEmRatingValue TEXT,
                lastEmRatingName TEXT,
                ratingChange TEXT,
                reportType INTEGER,
                author TEXT,
                indvIsNew TEXT,
                researcher TEXT,
                newListingDate TEXT,
                newPurchaseDate TEXT,
                newIssuePrice REAL,
                newPeIssueA REAL,
                indvAimPriceT TEXT,
                indvAimPriceL TEXT,
                attachType TEXT,
                attachSize INTEGER,
                attachPages INTEGER,
                encodeUrl TEXT,
                sRatingName TEXT,
                sRatingCode TEXT,
                market TEXT,
                newStockSort TEXT,
                authorID TEXT,
                count INTEGER,
                orgType TEXT,
                created_at TEXT DEFAULT (datetime('now', 'localtime')),
                updated_at TEXT DEFAULT (datetime('now', 'localtime'))
            );
CREATE TABLE reports_strategy (
                id INTEGER PRIMARY KEY AUTOINCREMENT,
                infoCode TEXT UNIQUE,
                title TEXT,
                author TEXT,
                orgName TEXT,
                orgCode TEXT,
                orgSName TEXT,
                publishDate TEXT,
                encodeUrl TEXT,
                researcher TEXT,
                market TEXT,
                industryCode TEXT,
                industryName TEXT,
                authorID TEXT,
                count INTEGER,
                orgType TEXT,
                created_at TEXT DEFAULT (datetime('now', 'localtime')),
                updated_at TEXT DEFAULT (datetime('now', 'localtime'))
            );
CREATE TABLE reports_macresearch (
                id INTEGER PRIMARY KEY AUTOINCREMENT,
                infoCode TEXT UNIQUE,
                json_id TEXT,
                title TEXT,
                author TEXT,
                orgName TEXT,
                orgCode TEXT,
                orgSName TEXT,
                publishDate TEXT,
                encodeUrl TEXT,
                researcher TEXT,
                market TEXT,
                industryCode TEXT,
                industryName TEXT,
                authorID TEXT,
                count INTEGER,
                orgType TEXT,
                created_at TEXT DEFAULT (datetime('now', 'localtime')),
                updated_at TEXT DEFAULT (datetime('now', 'localtime'))
            );
